All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ktx.scene2d.tree.kt Maven / Gradle / Ivy

There is a newer version: 1.12.1-rc2
Show newest version
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