
Hbox and Vbox widgets are one-dimensional grid widgets with rows=1, cols=1 respectively, and with a simplified JSON attribute list.
These widgets does not have a C API only a JSON loader which is a shortcut to a one-dimensional grid and the resulting widget is a Grid widget.
The vbox is uniform, that means that both buttons have the same width, otherwise the button OK would be smaller as the button label is shorter.
The padd between the buttons is the only element that can grow, so it fills awailable space as the hbox grows.
The vbox is uniform, that means that both buttons have the same width, otherwise the button OK would be smaller as the button label is shorter.
The padd on the left is the only element that can grow, so it fills the available space as the hbox grows.
The vbox is uniform, that means that both buttons have the same width, otherwise the button OK would be smaller as the button label is shorter.
Both buttons have fill coeficient 4 and the space between them has fill coeficient 1. Available space is divided by 4:1:4.
Attribute | Type | Default | Description |
---|---|---|---|
|
string |
all |
See grid |
|
string |
cnt x |
Cell fill coeficients. |
|
string |
(cnt+1) x |
Padding fill coeficients. |
|
string |
(cnt+1) x |
Padding sizes between cells. |
|
bool |
false |
Draws frame around grid. |
|
bool |
false |
The minimal cell sizes are distributed uniformly. |
|
array |
Array of widgets |