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

Register and show a custom widget
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

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

update!clj

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

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