}
private fun createContainer(
- builder: ContainerBuilder,
+ container: ContainerBuilder,
fill: Boolean = false,
hexpand: Boolean = false,
vexpand: Boolean = false,
rowspacing: Int = -1,
ui: ContainerUI? = null
): UiWidget {
- val container = Container.vbox(obj)
if(hexpand) {
container.hexpand(true)
}
ui: ContainerUI? = null
): UiWidget {
return createContainer(
- builder = Container.hbox(obj),
+ container = Container.hbox(obj),
fill = fill,
hexpand = hexpand,
vexpand = vexpand,
ui: ContainerUI? = null
): UiWidget {
return createContainer(
- builder = Container.vbox(obj),
+ container = Container.vbox(obj),
fill = fill,
hexpand = hexpand,
vexpand = vexpand,
ui: ContainerUI? = null
): UiWidget {
return createContainer(
- builder = Container.grid(obj),
+ container = Container.grid(obj),
fill = fill,
hexpand = hexpand,
vexpand = vexpand,
override fun startup() {
val window = window("Test Window") {
hbox {
+ button("T1")
+ button("T2")
vbox {
- button(label = "Hello World") {
- println("Button Clicked")
- }
- button(label = "Hello World") {
- println("Button Clicked")
- }
- }
- vbox {
- button(label = "Hello World") {
- println("Button Clicked")
- }
+ button("V1")
+ button("V2")
}
+ button("T3")
}
}