Liking cljdoc? Tell your friends :D

strigui.widget


adjust-dimensionsclj

(adjust-dimensions canvas widget)
source

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

draw-widget-borderclj

(draw-widget-border widget canvas)
source

handle-clickedclj

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

handle-mouse-movedclj

(handle-mouse-moved)
source

Hidecljprotocol

hideclj

(hide this canvas)

to provide a custom implementation for hiding a widget per widget type

to provide a custom implementation for hiding a widget per widget type
source

hide!cljmultimethod

source

intersect?clj

(intersect? coord1 coord2)
source

next-tabbed-widget-mapclj

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

on-border?clj

(on-border? [x y w h] x0 y0)
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. ...

coordclj

(coord this canvas)

gets the coordinates of the widget

gets the coordinates of the widget

defaultsclj

(defaults this)

attach default values

attach default values

drawclj

(draw this canvas)

draw the widget, returns the widget on success

draw the widget, returns the widget on success
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