-
Notifications
You must be signed in to change notification settings - Fork 0
Grid
A grid to lay out Widgets on.
new()
Creates a Grid.
append(Libui::Control $control, int32 $left, int32 $top, int32 $xspan, int32 $yspan, int32 $hexpand, int32 $halign, int32 $vexpand, int32 $valign)
Appends a widget to the Grid:
- $left columns from the left
- $top rows from the right
- stretches across $xspan columns
- stretches across $yspan rows
- expand horizontally if $hexpand == 1
- set horizontal alignment to $halign
- expand vertically if $vexpand == 1
- set vertical alignment to $valign
set-content(Libui::Control $control, int32 $left, int32 $top, int32 $xspan, int32 $yspan, int32 $hexpand, int32 $halign, int32 $vexpand, int32 $valign)
Appends a widget to the Grid:
- $left columns from the left
- $top rows from the right
- stretches across $xspan columns
- stretches across $yspan rows
- expand horizontally if $hexpand == 1
- set horizontal alignment to $halign
- expand vertically if $vexpand == 1
- set vertical alignment to $valign
insert(Libui::Control $control, Libui::Control $existing, int32 $at, int32 $xspan, int32 $yspan, int32 $hexpand, int32 $halign, int32 $vexpand, int32 $valign)
Inserts a widget to the Grid near $existing:
- Positioned next to $existing based on the value of $at
- stretches across $xspan columns
- stretches across $yspan rows
- expand horizontally if $hexpand == 1
- set horizontal alignment to $halign
- expand vertically if $vexpand == 1
- set vertical alignment to $valign
padded() returns int32
Returns the value of the padded property.
set-padded(int32 $padded)
or padded(Int $padded)
Sets the value of the padded property.
- 0: Fill
- 1: Start
- 2: Center
- 3: End
- 0: Left
- 1: Top
- 2: Right
- 3: Bottom