panel

inline fun Node.panel(callback: Panel.() -> Unit = {}): Panel

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

Return

the newly created Panel

Parameters

callback

the callback that is invoked with a Panel context in order to initialize any values


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

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

Return

the newly created Panel

Parameters

callback

the callback that is invoked with a Panel context in order to initialize any values