Package-level declarations

Types

Link copied to clipboard

Properties

Link copied to clipboard
const val defaultStyle: String

Name of default resources in Skin. Often used as default Scene2D actor style names.

Functions

Link copied to clipboard
inline fun <Resource : Any> Skin.add(resource: Resource, name: String = defaultStyle)

Utility function that makes it easier to add Skin assets.

Link copied to clipboard
inline fun <Style> Skin.addStyle(name: String, style: Style, init: Style.() -> Unit = {}): Style

Utility function for adding existing styles to the skin. Mostly for internal use.

Link copied to clipboard
inline fun Skin.button(name: String = defaultStyle, extend: String? = null, init: Button.ButtonStyle.() -> Unit = {}): Button.ButtonStyle
Link copied to clipboard
inline fun Skin.checkBox(name: String = defaultStyle, extend: String? = null, init: CheckBox.CheckBoxStyle.() -> Unit = {}): CheckBox.CheckBoxStyle
Link copied to clipboard
fun Skin.color(name: String, red: Float, green: Float, blue: Float, alpha: Float = 1.0f): Color

Adds a new Color instance to the skin.

Link copied to clipboard
inline operator fun <Resource : Any, E : Enum<E>> Skin.get(name: E): Resource
inline operator fun <Resource : Any> Skin.get(name: String = defaultStyle): Resource

Utility function that makes it easier to access Skin assets.

Link copied to clipboard
inline fun <Resource : Any> Skin.getAll(): ObjectMap<String, Resource>?

Utility function that makes it easier to access all Skin assets of a certain type.

Link copied to clipboard
inline fun <Resource : Any> Skin.has(name: String = defaultStyle): Boolean

Utility function that makes it easier to check if Skin contains assets.

Link copied to clipboard
inline fun Skin.imageButton(name: String = defaultStyle, extend: String? = null, init: ImageButton.ImageButtonStyle.() -> Unit = {}): ImageButton.ImageButtonStyle
Link copied to clipboard
inline fun Skin.imageTextButton(name: String = defaultStyle, extend: String? = null, init: ImageTextButton.ImageTextButtonStyle.() -> Unit = {}): ImageTextButton.ImageTextButtonStyle
Link copied to clipboard
inline fun Skin.label(name: String = defaultStyle, extend: String? = null, init: Label.LabelStyle.() -> Unit = {}): Label.LabelStyle
Link copied to clipboard
inline fun Skin.list(name: String = defaultStyle, extend: String? = null, init: List.ListStyle.() -> Unit = {}): List.ListStyle
Link copied to clipboard
inline fun <Resource : Any> Skin.optional(name: String = defaultStyle): Resource?

Utility function that makes it easier to access Skin assets or return null if they don't exist.

Link copied to clipboard
inline operator fun <Resource : Any> Skin.plusAssign(resource: Resource)

Utility function that makes it easier to add Skin assets under the defaultStyle name.

Link copied to clipboard
inline fun Skin.progressBar(name: String = defaultStyle, extend: String? = null, init: ProgressBar.ProgressBarStyle.() -> Unit = {}): ProgressBar.ProgressBarStyle
Link copied to clipboard
inline fun Skin.register(styles: Skin.(Skin) -> Unit)

Allows to create new UI component styles with the KTX DSL. This method is very similar to the apply extension method from the standard library, but supports the DSL annotation.

Link copied to clipboard
inline fun <Resource : Any> Skin.remove(name: String = defaultStyle)

Utility function that makes it easier to remove Skin assets.

Link copied to clipboard
inline fun Skin.scrollPane(name: String = defaultStyle, extend: String? = null, init: ScrollPane.ScrollPaneStyle.() -> Unit = {}): ScrollPane.ScrollPaneStyle
Link copied to clipboard
inline fun Skin.selectBox(name: String = defaultStyle, extend: String? = null, init: SelectBox.SelectBoxStyle.() -> Unit = {}): SelectBox.SelectBoxStyle
Link copied to clipboard
inline operator fun <Resource : Any, E : Enum<E>> Skin.set(name: E, resource: Resource)
inline operator fun <Resource : Any> Skin.set(name: String, resource: Resource)

Utility function that makes it easier to add Skin assets.

Link copied to clipboard
inline fun skin(init: Skin.(Skin) -> Unit = {}): Skin
inline fun skin(atlas: TextureAtlas, init: Skin.(Skin) -> Unit = {}): Skin
Link copied to clipboard
inline fun Skin.slider(name: String = defaultStyle, extend: String? = null, init: Slider.SliderStyle.() -> Unit = {}): Slider.SliderStyle
Link copied to clipboard
inline fun Skin.splitPane(name: String = defaultStyle, extend: String? = null, init: SplitPane.SplitPaneStyle.() -> Unit = {}): SplitPane.SplitPaneStyle
Link copied to clipboard
inline fun Skin.textButton(name: String = defaultStyle, extend: String? = null, init: TextButton.TextButtonStyle.() -> Unit = {}): TextButton.TextButtonStyle
Link copied to clipboard
inline fun Skin.textField(name: String = defaultStyle, extend: String? = null, init: TextField.TextFieldStyle.() -> Unit = {}): TextField.TextFieldStyle
Link copied to clipboard
inline fun Skin.textTooltip(name: String = defaultStyle, extend: String? = null, init: TextTooltip.TextTooltipStyle.() -> Unit = {}): TextTooltip.TextTooltipStyle
Link copied to clipboard
inline fun Skin.touchpad(name: String = defaultStyle, extend: String? = null, init: Touchpad.TouchpadStyle.() -> Unit = {}): Touchpad.TouchpadStyle
Link copied to clipboard
inline fun Skin.tree(name: String = defaultStyle, extend: String? = null, init: Tree.TreeStyle.() -> Unit = {}): Tree.TreeStyle
Link copied to clipboard
inline fun Skin.window(name: String = defaultStyle, extend: String? = null, init: Window.WindowStyle.() -> Unit = {}): Window.WindowStyle