Liking cljdoc? Tell your friends :D

strigui.box


Boxcljprotocol

collection of functions around redrawing boxes, managing the border etc. ...

collection of functions around redrawing boxes, managing the border etc. ...

draw-clickedclj

(draw-clicked this canvas)

draws the clicked effect

draws the clicked effect

draw-hoverclj

(draw-hover this canvas)

draws the hover effect

draws the hover effect
sourceraw docstring

box-borderclj

(box-border canvas color strength x y w h)
(box-border canvas color strength x y w h no-fill)
source

box-coordclj

(box-coord canvas text {:keys [x y min-width font-size]})

Computes the full box coordinates. Returns the vector [x y border-width border-heigth]

Computes the full box coordinates.
Returns the vector [x y border-width border-heigth]
sourceraw docstring

box-drawclj

(box-draw args)
(box-draw canvas text args)

canvas - clojure2d canvas text - text displayed inside the input x - x coordinate of top left corner y - y coordinate of top left corner color - vector consisting of [background-color font-color] min-width - the minimum width

canvas - clojure2d canvas
text - text displayed inside the input
x - x coordinate of top left corner
y - y coordinate of top left corner
color - vector consisting of [background-color font-color]
min-width - the minimum width
sourceraw docstring

box-draw-borderclj

(box-draw-border box canvas)
(box-draw-border box canvas color)
(box-draw-border box canvas color strength)
(box-draw-border box canvas color strength fill)
source

box-draw-hoverclj

(box-draw-hover box canvas)
source

box-draw-textclj

(box-draw-text canvas
               text
               {:keys [x y color min-width align font-style font-size]})

Draws the text of the box

Draws the text of the box
sourceraw docstring

box-redrawclj

(box-redraw box canvas)
source

box-remove-drawnclj

(box-remove-drawn box canvas)
source

Eventcljprotocol

collection of functions to hook into events

collection of functions to hook into events

key-pressedclj

(key-pressed this char code)
sourceraw docstring

handle-key-pressedclj

(handle-key-pressed canvas widget char code)
source

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

× close