(button! name text args)
Create a simple button on screen. name - name of the element text - text displayed inside the button args - map of: x - x coordinate of top left corner y - y coordinate of top left corner color - vector consisting of [background-color font-color] min-width - the minimum width
Create a simple button on screen. name - name of the element text - text displayed inside the button args - map of: x - x coordinate of top left corner y - y coordinate of top left corner color - vector consisting of [background-color font-color] min-width - the minimum width
(close-window)
Closes the current active window.
Closes the current active window.
(create! widget)
Register and show a custom widget
Register and show a custom widget
(find-by-name name)
Find and return an widget by its name
Find and return an widget by its name
(input! name text args)
Create a simple imput field on screen. name - name of the element text - text displayed inside the button args - map of: x - x coordinate of top left corner y - y coordinate of top left corner color - vector consisting of [background-color font-color] min-width - the minimum width
Create a simple imput field on screen. name - name of the element text - text displayed inside the button args - map of: x - x coordinate of top left corner y - y coordinate of top left corner color - vector consisting of [background-color font-color] min-width - the minimum width
(label! name text args)
Create a simple label on screen. name - name of the element text - text displayed inside the button args - map of: x - x coordinate of top left corner y - y coordinate of top left corner color - vector consisting of [font-color] font-style - vector consisting of either :bold :italic :italic-bold font-size - number
Create a simple label on screen. name - name of the element text - text displayed inside the button args - map of: x - x coordinate of top left corner y - y coordinate of top left corner color - vector consisting of [font-color] font-style - vector consisting of either :bold :italic :italic-bold font-size - number
(remove! name)
Remove an widget by its name
Remove an widget by its name
(update! name key value)
Update any property of a widget via the widget name. name - name of the widget key - either single key or vector of keys value - the new property value
Update any property of a widget via the widget name. name - name of the widget key - either single key or vector of keys value - the new property value
(window! wind)
(window! width height title)
(window! width height title fps quality)
Initializes a new window or reuses an existing one wind - an already existing windows instance (experimental) width height fps - frames per second quality - rendering quality :low :mid :high :highest
Initializes a new window or reuses an existing one wind - an already existing windows instance (experimental) width height fps - frames per second quality - rendering quality :low :mid :high :highest
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close