(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.
(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
(next-tabbed-widget-map canvas widgets previously-tabbed selected-widget)
collection of functions around redrawing widgets, managing the border etc. ...
collection of functions around redrawing widgets, managing the border etc. ...
(coord this canvas)
gets the coordinates of the widget
gets the coordinates of the widget
(defaults this)
attach default values
attach default values
(draw this canvas)
draw the widget, returns the widget on success
draw the widget, returns the widget on success
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close