Liking cljdoc? Tell your friends :D

strigui.widget


adjust-dimensionsclj

(adjust-dimensions canvas widget)
source

all-neighbouring-widgetsclj

(all-neighbouring-widgets canvas widget widgets)
(all-neighbouring-widgets canvas widget widgets operator-f)

Get all neighbouring widgets by following the neighouring chain. operator-f is a optional order with truthy return (fn [neighbour current-widget] ....) that will be used in a filter ,

  • all widgets that are covering the current widget < - all widgets that are covered by the current widget If no order function is given, then take all widgets that touch the current widget.
Get all neighbouring widgets by following the neighouring chain.
operator-f is a optional order with truthy return (fn [neighbour current-widget] ....) that will be used in a filter , 
 > - all widgets that are covering the current widget
 < - all widgets that are covered by the current widget
If no order function is given, then take all widgets that touch the current widget.
sourceraw docstring

def-actioncljmacro

(def-action name default-fn)
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-focusedcljprotocol

draw-focusedclj

(draw-focused this__7038__auto__ canvas__7039__auto__)
source

draw-focused!cljmultimethod

source

Draw-resizingcljprotocol

draw-resizingclj

(draw-resizing this__7038__auto__ canvas__7039__auto__)
source

draw-resizing!cljmultimethod

source

Draw-selectedcljprotocol

draw-selectedclj

(draw-selected this__7038__auto__ canvas__7039__auto__)
source

draw-selected!cljmultimethod

source

draw-widget-borderclj

(draw-widget-border widget canvas)
source

get-with-propertyclj

(get-with-property widgets key)
(get-with-property widgets key value)

Returns the widget names for widgets that contain the specific key value pair or a truthy value for the specific key from a sequence of widgets.

Returns the widget names for widgets that contain the specific key value pair 
or a truthy value for the specific key from a sequence of widgets.
sourceraw docstring

handle-clickedclj

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

handle-mouse-movedclj

(handle-mouse-moved action)
source

Hidecljprotocol

hideclj

(hide this__7038__auto__ canvas__7039__auto__)
source

hide!cljmultimethod

source

intersect?clj

(intersect? coord1 coord2)
source

neighbouring-widgetsclj

(neighbouring-widgets canvas widget widgets)

get all neighbours of the given widget. Neighbours are sorted by their :z coordinate in ascending order

get all neighbours of the given widget. Neighbours are sorted by their :z coordinate
in ascending order
sourceraw docstring

next-widget-to-tabclj

(next-widget-to-tab canvas widgets previously-tabbed selected-widget)
source

on-border?clj

(on-border? [x y w h] x0 y0)
source

redraw!clj

(redraw! canvas & widgets)

redraws the given sequence of widgets

redraws the given sequence of widgets
sourceraw docstring

register!clj

(register! canvas widget)
(register! canvas widget skip-redraw?)

register the widget and draw it to the canvas. Can skip redraw via ski-redraw?

register the widget and draw it to the canvas. Can skip redraw via ski-redraw?
sourceraw docstring

replace!clj

(replace! canvas old-widget-name new-widget)
(replace! canvas old-widget-name new-widget skip-redraw?)

Replaces the current widget of the given widget name with the new widget, if the current widget actually exists, otherwise it ignores it.

Replaces the current widget of the given widget name with the
new widget, if the current widget actually exists, otherwise it ignores it.
sourceraw docstring

set-with-propertyclj

(set-with-property widgets key value)
sourceraw docstring

stateclj

source

trigger-custom-eventclj

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

unregister!clj

(unregister! canvas widget)
(unregister! canvas widget skip-hide?)

unregister the widget and hide it.

unregister the widget and hide it. 
sourceraw docstring

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