(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. Registering a component with the same name will replace the existing component with the new one.
Register and show a custom widget. Registering a component with the same name will replace the existing component with the new one.
(find-by-group name)
Retuns a vector of widgets by group name
Retuns a vector of widgets by group name
(find-by-name name)
Find and return an widget by its name
Find and return an widget by its name
(from-file file-name)
Initializes the window and the widgets from a edn file
Initializes the window and the widgets from a edn file
(from-map strigui-map)
Initializes the window and the widgets from a map
Initializes the window and the widgets from a map
(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
(remove-group! name)
Removes all widgets assigned to the given group
Removes all widgets assigned to the given group
(to-file file-name)
Writes the current state of strigui into a edn file
Writes the current state of strigui into a edn file
(to-map)
converts the current state to a map that could be stored in a file
converts the current state to a map that could be stored in a file
(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