window

inline fun RootWidget.window(title: String, style: String = defaultStyle, skin: Skin = Scene2DSkin.defaultSkin, init: KWindow.() -> Unit = {}): KWindow

Constructs a top-level Window widget.

Return

a new Window instance.

Parameters

title

will be displayed as window's title.

style

name of the widget style. Defaults to defaultStyle.

skin

Skin instance that contains the widget style. Defaults to Scene2DSkin.defaultSkin.

init

will be invoked on the Window widget. Inlined.