Liking cljdoc? Tell your friends :D

capra.core


*graphics*clj

source

*strategy*clj

source

attach-buffered-strategyclj

(attach-buffered-strategy window buffer-count)
source

clear-rectclj

(clear-rect x y width height)

Fills a rectangular shape with the current background color

Fills a rectangular shape with the current background color
sourceraw docstring

close-windowclj

(close-window window)
source

create-windowclj

(create-window name
               x
               y
               width
               height
               title
               {:keys [color resizable? icon-path on-close hide-title-bar?]
                :or {color Color/white
                     resizable? false
                     icon-path nil
                     on-close exit
                     hide-title-bar? false}})

Creates and displays a window. Returns a map consisting of the window and the canvas

Creates and displays a window. Returns a map consisting of the window and the canvas
sourceraw docstring

draw->cljmacro

(draw-> window & body)
source

ellipseclj

(ellipse x y width height color fill?)
(ellipse x y width height color fill? thickness)

Draw an ellipse onto the window

Draw an ellipse onto the window
sourceraw docstring

exitclj

source

get-text-dimensionsclj

(get-text-dimensions window text font-size)

Gets the width and the height of a given text

Gets the width and the height of a given text
sourceraw docstring

handle-eventcljmultimethod

source

hideclj

source

imageclj

(image picture x y background-color)
(image picture x y width height background-color)

Display a image onto the window

Display a image onto the window
sourceraw docstring

lineclj

(line x0 y0 x1 y1 color)
(line x0 y0 x1 y1 color thickness)

Draw a line onto the window

Draw a line onto the window
sourceraw docstring

path->Imageclj

(path->Image file-path)

Load a Image from its location into memory

Load a Image from its location into memory
sourceraw docstring

propertiesclj

(properties {:keys [frame canvas]})

Gets the properties of the context, which is the map returned by 'create-window' function

Gets the properties of the context, which is the map returned by 'create-window' function
sourceraw docstring

rectclj

(rect x y width height color fill?)
(rect x y width height color fill? thickness)

Draw a rectangle onto the window

Draw a rectangle onto the window
sourceraw docstring

textclj

(text x y content color font-size)
(text x y content color font-size style)

Display a text onto the window

Display a text onto the window
sourceraw docstring

use-buffer->cljmacro

(use-buffer-> window & body)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close