button

inline fun Node.button(callback: Button.() -> Unit = {}): Button

Adds a Button to the current Node as a child and then triggers the callback


inline fun SceneGraph<*>.button(callback: Button.() -> Unit = {}): Button

Adds a Button to the current SceneGraph.root as a child and then triggers the callback