Liking cljdoc? Tell your friends :D

strigui.widget


distance-xclj

(distance-x [x1 y1] [x2 y2])
(distance-x canvas widget1 widget2)

Manhatten distance that is sqashed on the x-axis, meaning widgets on similar y positions are treated as being closer together.

Manhatten distance that is sqashed on the x-axis,
meaning widgets on similar y positions are treated as
being closer together.
sourceraw docstring

handle-clickedclj

(handle-clicked x-pos y-pos)
source

handle-mouse-movedclj

(handle-mouse-moved)
source

hideclj

(hide widget canvas)
source

intersect?clj

(intersect? coord1 coord2)
source

next-tabbed-widget-mapclj

(next-tabbed-widget-map canvas widgets previously-tabbed selected-widget)
source

redraw!clj

(redraw! canvas & widgets)
source

register!clj

(register! canvas widget)
source

replace!clj

(replace! canvas old-widget new-widget)
source

stateclj

source

trigger-custom-eventclj

(trigger-custom-event action widget & args)
source

unregister!clj

(unregister! canvas widget)
source

Widgetcljprotocol

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

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

argsclj

(args this)

the current args of the widget

the current args of the widget

coordclj

(coord this canvas)

gets the coordinates of the widget

gets the coordinates of the widget

drawclj

(draw this canvas)

draw the widget, returns the widget on success

draw the widget, returns the widget on success

valueclj

(value this)

the current text of the widget

the current text of the widget

widget-nameclj

(widget-name this)

name of the widget

name of the widget
sourceraw docstring

widget-eventcljmultimethod

source

widget-global-eventcljmultimethod

source

within?clj

(within? coord1 coord2)
(within? coord x y)

Checks wheter the point (x y) is within the given coord coord - vector [x-coord y-coord width height] x - x-coord of point to check y - y-coord of point to check

Checks wheter the point (x y) is within the given coord
coord - vector [x-coord y-coord width height]
x - x-coord of point to check
y - y-coord of point to check
sourceraw docstring

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

× close