gdx.ui

*on-clicked-actor*

dynamic

actor

(actor {:keys [draw act]})

add-actor!

(add-actor! group actor)

Adds an actor as a child of this group, removing it from its previous parent. If the actor is already a child of this group, no changes are made.

add-rows!

(add-rows! table rows)

rows is a seq of seqs of columns. Elements are actors or nil (for just adding empty cells ) or a map of {:actor :expand? :bottom? :colspan int :pad :pad-bottom}. Only :actor is required.

add-tooltip!

(add-tooltip! a tooltip-text)

tooltip-text is a (fn []) or a string. If it is a function will be-recalculated every show.

bg-add!

(bg-add! bg button)

bg-checked

(bg-checked bg)

The first checked button, or nil.

bg-remove!

(bg-remove! bg button)

button-group

(button-group {:keys [max-check-count min-check-count]})

button?

(button? actor)

Returns true if the actor or its parent is a button.

check-box

(check-box text on-clicked checked?)

on-clicked is a fn of one arg, taking the current isChecked state

children

(children group)

Returns an ordered list of child actors in this group.

clear-children!

(clear-children! group)

Removes all actors from this group and unfocuses them.

find-actor-with-id

(find-actor-with-id group id)

find-ancestor-window

(find-ancestor-window actor)

group

(group {:keys [actors], :as opts})

horizontal-group

(horizontal-group {:keys [space pad]})

horizontal-separator-cell

(horizontal-separator-cell colspan)

image->widget

(image->widget image opts)

image-button

(image-button image on-clicked)(image-button {:keys [texture-region]} on-clicked {:keys [scale]})

image-widget

(image-widget object {:keys [scaling align fill-parent?], :as opts})

Takes either a texture-region or drawable. Opts are :scaling, :align and actor opts.

label

(label text)

pack-ancestor-window!

(pack-ancestor-window! actor)

remove-tooltip!

(remove-tooltip! a)

scroll-pane

(scroll-pane actor)

select-box

(select-box {:keys [items selected]})

set-drawable!

(set-drawable! image drawable)

set-min-size!

(set-min-size! drawable size)

stack

(stack actors)

t-node

(t-node actor)

table

(table opts)

text-button

(text-button text on-clicked)

text-field

(text-field text opts)

texture-region-drawable

(texture-region-drawable texture-region)

tinted-drawable

(tinted-drawable drawable color)

Creates a new drawable that renders the same as this drawable tinted the specified color.

tree

(tree)

vertical-group

(vertical-group actors)

vertical-separator-cell

(vertical-separator-cell)

widget

(widget draw!)

window

(window {:keys [title modal? close-button? center? close-on-escape?], :as opts})

window-title-bar?

(window-title-bar? actor)

Returns true if the actor is a window title bar.