-
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, UInt:D $left, UInt:D $top, UInt:D $xspan, UInt:D $yspan, Bool:D(Int) $hexpand, Align $halign, Bool:D(Int) $vexpand, Align $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
-
set horizontal alignment to $halign
-
expand vertically if $vexpand
-
set vertical alignment to $valign
set-content(Libui::Control $control, UInt:D $left, UInt:D $top, UInt:D $xspan, UInt:D $yspan, Bool:D(Int) $hexpand, Align $halign, Bool:D(Int) $vexpand, Align $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
-
set horizontal alignment to $halign
-
expand vertically if $vexpand
-
set vertical alignment to $valign
insert(Libui::Control $control, Libui::Control $existing, At $at, UInt:D $xspan, UInt:D $yspan, Bool:D(Int) $hexpand, Align $halign, Bool:D(Int) $vexpand, Align $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
-
set horizontal alignment to $halign
-
expand vertically if $vexpand
-
set vertical alignment to $valign
padded() returns Bool
Returns the value of the padded property.
set-padded(Bool:D(Int) $padded)
or padded(Bool:D(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