(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.
(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. ...
(args this)
the current args of the widget
the current args of the widget
(coord this canvas)
gets the coordinates of the widget
gets the coordinates of the widget
(draw this canvas)
draw the widget, returns the widget on success
draw the widget, returns the widget on success
(value this)
the current text of the widget
the current text of the widget
(widget-name this)
name of the widget
name of the widget
(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