ktx.scene2d.tree.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ktx-scene2d Show documentation
Show all versions of ktx-scene2d Show documentation
LibGDX Scene2D GUI building utilities for Kotlin applications.
package ktx.scene2d
import com.badlogic.gdx.scenes.scene2d.ui.Skin
import com.badlogic.gdx.scenes.scene2d.ui.Tree
/* Inlined factory methods of tree root widget. */
/**
* @param style name of the widget style. Defaults to [defaultStyle].
* @param skin [Skin] instance that contains the widget style. Defaults to [Scene2DSkin.defaultSkin].
* @param init will be invoked on the widget. Inlined.
* @return a new [Tree] instance.
*/
inline fun tree(
style: String = defaultStyle,
skin: Skin = Scene2DSkin.defaultSkin,
init: KTreeWidget.() -> Unit = {}) = actor(KTreeWidget(skin, style), init)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy