(actor! entity k & options)
Calls a single method on an actor.
Calls a single method on an actor.
(actor-gesture-listener! screen k & options)
Calls a single method on the ActorGestureListener
in the screen
.
Calls a single method on the [ActorGestureListener](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/utils/ActorGestureListener.html) in the `screen`.
(actor? entity)
Returns true if entity
is an actor.
Returns true if `entity` is an actor.
(add! group & children)
Adds the entities in children
to the group
entity of type WidgetGroup.
Adds the entities in `children` to the `group` entity of type [WidgetGroup](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/WidgetGroup.html).
(align k)
Returns a static field from Align.
(align :center)
Returns a static field from [Align](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/utils/Align.html). (align :center)
(cell! cell & args)
Calls methods on a Cell.
Calls methods on a [Cell](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/Cell.html).
(change-listener! screen k & options)
Calls a single method on the ChangeListener
in the screen
.
Calls a single method on the [ChangeListener](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/utils/ChangeListener.html) in the `screen`.
(check-box text arg & options)
Returns an entity based on CheckBox.
(check-box "I'm a check box" (style :check-box off on font color)) (check-box "I'm a check box" (style :check-box nil nil (bitmap-font) (color :white))) (check-box "I'm a check box" (skin "uiskin.json"))
Returns an entity based on [CheckBox](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/CheckBox.html). (check-box "I'm a check box" (style :check-box off on font color)) (check-box "I'm a check box" (style :check-box nil nil (bitmap-font) (color :white))) (check-box "I'm a check box" (skin "uiskin.json"))
(check-box! entity k & options)
Calls a single method on a check-box
.
Calls a single method on a `check-box`.
(check-box? entity)
Returns true if entity
is a check-box
.
Returns true if `entity` is a `check-box`.
(click-listener! screen k & options)
Calls a single method on the ClickListener
in the screen
.
Calls a single method on the [ClickListener](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/utils/ClickListener.html) in the `screen`.
(container child & options)
Returns an entity based on Container.
(container entity)
Returns an entity based on [Container](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/Container.html). (container entity)
(container! entity k & options)
Calls a single method on a container
.
Calls a single method on a `container`.
(container? entity)
Returns true if entity
is a container
.
Returns true if `entity` is a `container`.
(dialog text arg & options)
Returns an entity based on Dialog.
(dialog "I'm a dialog" (style :window font font-color background)) (dialog "I'm a dialog" (style :window (bitmap-font) (color :white) nil)) (dialog "I'm a dialog" (skin "uiskin.json"))
Returns an entity based on [Dialog](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/Dialog.html). (dialog "I'm a dialog" (style :window font font-color background)) (dialog "I'm a dialog" (style :window (bitmap-font) (color :white) nil)) (dialog "I'm a dialog" (skin "uiskin.json"))
(dialog! entity k & options)
Calls a single method on a dialog
.
Calls a single method on a `dialog`.
(dialog? entity)
Returns true if entity
is a dialog
.
Returns true if `entity` is a `dialog`.
(drag-listener! screen k & options)
Calls a single method on the DragListener
in the screen
.
Calls a single method on the [DragListener](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/utils/DragListener.html) in the `screen`.
(drawable k & options)
Returns a subclass of BaseDrawable.
(drawable :texture-region)
Returns a subclass of [BaseDrawable](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/utils/BaseDrawable.html). (drawable :texture-region)
(focus-listener! screen k & options)
Calls a single method on the FocusListener
in the screen
.
Calls a single method on the [FocusListener](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/utils/FocusListener.html) in the `screen`.
(horizontal children & options)
Returns an entity based on HorizontalGroup.
(horizontal [entity-1 entity-2])
Returns an entity based on [HorizontalGroup](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/HorizontalGroup.html). (horizontal [entity-1 entity-2])
(horizontal! entity k & options)
Calls a single method on a horizontal
.
Calls a single method on a `horizontal`.
(horizontal? entity)
Returns true if entity
is a horizontal
.
Returns true if `entity` is a `horizontal`.
(image arg & options)
Returns an entity based on Image.
(image "image.png")
Returns an entity based on [Image](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/Image.html). (image "image.png")
(image! entity k & options)
Calls a single method on a image
.
Calls a single method on a `image`.
(image-button arg & options)
Returns an entity based on ImageButton.
(image-button (style :image-button up dn check img-up img-dn img-check)) (image-button (style :image-button nil nil nil nil nil nil)) (image-button (skin "uiskin.json"))
Returns an entity based on [ImageButton](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/ImageButton.html). (image-button (style :image-button up dn check img-up img-dn img-check)) (image-button (style :image-button nil nil nil nil nil nil)) (image-button (skin "uiskin.json"))
(image-button! entity k & options)
Calls a single method on a image-button
.
Calls a single method on a `image-button`.
(image-button? entity)
Returns true if entity
is an image-button
.
Returns true if `entity` is an `image-button`.
(image-text-button text arg & options)
Returns an entity based on ImageTextButton.
(image-text-button "I'm an image text button" (style :image-text-button up down checked font)) (image-text-button "I'm an image text button" (style :image-text-button nil nil nil (bitmap-font))) (image-text-button "I'm an image text button" (skin "uiskin.json"))
Returns an entity based on [ImageTextButton](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/ImageTextButton.html). (image-text-button "I'm an image text button" (style :image-text-button up down checked font)) (image-text-button "I'm an image text button" (style :image-text-button nil nil nil (bitmap-font))) (image-text-button "I'm an image text button" (skin "uiskin.json"))
(image-text-button! entity k & options)
Calls a single method on a image-text-button
.
Calls a single method on a `image-text-button`.
(image-text-button? entity)
Returns true if entity
is a image-text-button
.
Returns true if `entity` is a `image-text-button`.
(image? entity)
Returns true if entity
is an image
.
Returns true if `entity` is an `image`.
(label text arg & options)
Returns an entity based on Label.
(label "I'm a label" (color :white)) (label "I'm a label" (style :label (bitmap-font) (color :white))) (label "I'm a label" (skin "uiskin.json"))
Returns an entity based on [Label](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/Label.html). (label "I'm a label" (color :white)) (label "I'm a label" (style :label (bitmap-font) (color :white))) (label "I'm a label" (skin "uiskin.json"))
(label! entity k & options)
Calls a single method on a label
.
Calls a single method on a `label`.
(label? entity)
Returns true if entity
is a label
.
Returns true if `entity` is a `label`.
(scroll-pane child arg & options)
Returns an entity based on ScrollPane.
(scroll-pane table-entity (style :scroll-pane back h h-knob v v-knob)) (scroll-pane table-entity (style :scroll-pane nil nil nil nil nil)) (scroll-pane table-entity (skin "uiskin.json"))
Returns an entity based on [ScrollPane](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/ScrollPane.html). (scroll-pane table-entity (style :scroll-pane back h h-knob v v-knob)) (scroll-pane table-entity (style :scroll-pane nil nil nil nil nil)) (scroll-pane table-entity (skin "uiskin.json"))
(scroll-pane! entity k & options)
Calls a single method on a scroll-pane
.
Calls a single method on a `scroll-pane`.
(scroll-pane? entity)
Returns true if entity
is a scroll-pane
.
Returns true if `entity` is a `scroll-pane`.
(select-box arg & options)
Returns an entity based on SelectBox.
(select-box (style :select-box font color back scroll-style list-style) :set-items (into-array ["Item 1" "Item 2" "Item 3"])) (select-box (style :select-box (bitmap-font) (color :white) nil (style :scroll-pane nil nil nil nil nil) (style :list (bitmap-font) (color :white) (color :black) nil)) :set-items (into-array ["Item 1" "Item 2" "Item 3"])) (select-box (skin "uiskin.json") :set-items (into-array ["Item 1" "Item 2" "Item 3"]))
Returns an entity based on [SelectBox](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/SelectBox.html). (select-box (style :select-box font color back scroll-style list-style) :set-items (into-array ["Item 1" "Item 2" "Item 3"])) (select-box (style :select-box (bitmap-font) (color :white) nil (style :scroll-pane nil nil nil nil nil) (style :list (bitmap-font) (color :white) (color :black) nil)) :set-items (into-array ["Item 1" "Item 2" "Item 3"])) (select-box (skin "uiskin.json") :set-items (into-array ["Item 1" "Item 2" "Item 3"]))
(select-box! entity k & options)
Calls a single method on a select-box
.
Calls a single method on a `select-box`.
(select-box? entity)
Returns true if entity
is a select-box
.
Returns true if `entity` is a `select-box`.
(skin path & options)
Returns a Skin
based on the file at path
.
(skin "uiskin.json")
Returns a [Skin](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/Skin.html) based on the file at `path`. (skin "uiskin.json")
(skin! object k & options)
Calls a single method on a skin
.
Calls a single method on a `skin`.
(slider attrs arg & options)
Returns an entity based on Slider.
(slider {:min 0 :max 10 :step 1 :vertical? false} (style :slider back knob)) (slider {:min 0 :max 10 :step 1 :vertical? false} (style :slider nil nil)) (slider {:min 0 :max 10 :step 1 :vertical? false} (skin "uiskin.json"))
Returns an entity based on [Slider](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/Slider.html). (slider {:min 0 :max 10 :step 1 :vertical? false} (style :slider back knob)) (slider {:min 0 :max 10 :step 1 :vertical? false} (style :slider nil nil)) (slider {:min 0 :max 10 :step 1 :vertical? false} (skin "uiskin.json"))
(slider! entity k & options)
Calls a single method on a slider
.
Calls a single method on a `slider`.
(slider* {:keys [min max step vertical?]
:or {min 0 max 10 step 1 vertical? false}}
arg)
(slider? entity)
Returns true if entity
is a slider
.
Returns true if `entity` is a `slider`.
(stack children & options)
Returns an entity based on Stack.
(stack [entity-1 entity-2])
Returns an entity based on [Stack](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/Stack.html). (stack [entity-1 entity-2])
(stack! entity k & options)
Calls a single method on a stack
.
Calls a single method on a `stack`.
(stack? entity)
Returns true if entity
is a stack
.
Returns true if `entity` is a `stack`.
(style k & options)
Returns a style object whose class is determined by the keyword k
.
(style :check-box)
Returns a style object whose class is determined by the keyword `k`. (style :check-box)
(table children & options)
Returns an entity based on Table.
(table [entity-1 entity-2])
Returns an entity based on [Table](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/Table.html). (table [entity-1 entity-2])
(table! entity k & options)
Calls a single method on a table
.
Calls a single method on a `table`.
(table? entity)
Returns true if entity
is a table
.
Returns true if `entity` is a `table`.
(text-button text arg & options)
Returns an entity based on TextButton.
(text-button "I'm a text button" (style :text-button up dn checked font)) (text-button "I'm a text button" (style :text-button nil nil nil (bitmap-font))) (text-button "I'm a text button" (skin "uiskin.json"))
Returns an entity based on [TextButton](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/TextButton.html). (text-button "I'm a text button" (style :text-button up dn checked font)) (text-button "I'm a text button" (style :text-button nil nil nil (bitmap-font))) (text-button "I'm a text button" (skin "uiskin.json"))
(text-button! entity k & options)
Calls a single method on a text-button
.
Calls a single method on a `text-button`.
(text-button? entity)
Returns true if entity
is a text-button
.
Returns true if `entity` is a `text-button`.
(text-field text arg & options)
Returns an entity based on TextField.
(text-field "I'm a text field" (style :text-field font color cur sel back)) (text-field "I'm a text field" (style :text-field (bitmap-font) (color :white) nil nil nil)) (text-field "I'm a text field" (skin "uiskin.json"))
Returns an entity based on [TextField](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/TextField.html). (text-field "I'm a text field" (style :text-field font color cur sel back)) (text-field "I'm a text field" (style :text-field (bitmap-font) (color :white) nil nil nil)) (text-field "I'm a text field" (skin "uiskin.json"))
(text-field! entity k & options)
Calls a single method on a text-field
.
Calls a single method on a `text-field`.
(text-field? entity)
Returns true if entity
is a text-field
.
Returns true if `entity` is a `text-field`.
(tree children arg & options)
Returns an entity based on Tree.
(tree [entity-1 entity-2] (style :tree plus minus selection)) (tree [entity-1 entity-2] (style :tree nil nil nil)) (tree [entity-1 entity-2] (skin "uiskin.json"))
Returns an entity based on [Tree](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/Tree.html). (tree [entity-1 entity-2] (style :tree plus minus selection)) (tree [entity-1 entity-2] (style :tree nil nil nil)) (tree [entity-1 entity-2] (skin "uiskin.json"))
(tree! entity k & options)
Calls a single method on a tree
.
Calls a single method on a `tree`.
(tree? entity)
Returns true if entity
is a tree
.
Returns true if `entity` is a `tree`.
(vertical children & options)
Returns an entity based on VerticalGroup.
(vertical [entity-1 entity-2])
Returns an entity based on [VerticalGroup](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/VerticalGroup.html). (vertical [entity-1 entity-2])
(vertical! entity k & options)
Calls a single method on a vertical
.
Calls a single method on a `vertical`.
(vertical? entity)
Returns true if entity
is a vertical
.
Returns true if `entity` is a `vertical`.
(window children title arg & options)
Returns an entity based on Window.
(window [entity-1 entity-2] "I'm a window" (style :window font color background)) (window [entity-1 entity-2] "I'm a window" (style :window (bitmap-font) (color :white) nil)) (window [entity-1 entity-2] "I'm a window" (skin "uiskin.json"))
Returns an entity based on [Window](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/ui/Window.html). (window [entity-1 entity-2] "I'm a window" (style :window font color background)) (window [entity-1 entity-2] "I'm a window" (style :window (bitmap-font) (color :white) nil)) (window [entity-1 entity-2] "I'm a window" (skin "uiskin.json"))
(window! entity k & options)
Calls a single method on a window
.
Calls a single method on a `window`.
(window? entity)
Returns true if entity
is a window
.
Returns true if `entity` is a `window`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close