Liking cljdoc? Tell your friends :D

strigui.core


button!clj

(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
sourceraw docstring

close-windowclj

(close-window)

Closes the current active window.

Closes the current active window.
sourceraw docstring

create!clj

(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.
sourceraw docstring

find-by-groupclj

(find-by-group name)

Retuns a vector of widgets by group name

Retuns a vector of widgets by group name
sourceraw docstring

find-by-nameclj

(find-by-name name)

Find and return an widget by its name

Find and return an widget by its name
sourceraw docstring

from-fileclj

(from-file file-name)

Initializes the window and the widgets from a edn file

Initializes the window and the widgets from a edn file
sourceraw docstring

from-mapclj

(from-map strigui-map)

Initializes the window and the widgets from a map

Initializes the window and the widgets from a map
sourceraw docstring

infoclj

(info text)
source

input!clj

(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
sourceraw docstring

label!clj

(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
sourceraw docstring

remove!clj

(remove! name)

Remove an widget by its name

Remove an widget by its name
sourceraw docstring

remove-group!clj

(remove-group! name)

Removes all widgets assigned to the given group

Removes all widgets assigned to the given group
sourceraw docstring

to-fileclj

(to-file file-name)

Writes the current state of strigui into a edn file

Writes the current state of strigui into a edn file
sourceraw docstring

to-mapclj

(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
sourceraw docstring

update!clj

(update! name key value)
(update! name key value skip-redraw?)

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 skip-redraw? - skip redrawing of the widget

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
skip-redraw? - skip redrawing of the widget
sourceraw docstring

update-group!clj

(update-group! name key value)
(update-group! name key value skip-redraw?)
source

window!clj

(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
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close