Box - Garland-g/perl6-libui GitHub Wiki

Box

Libui::HBox, Libui::VBox

A box that holds several widgets. Both Vertical and Horizontal are available.

Methods

new()

Create a Box.

append(Libui::Control:D $control, Bool:D(Int) $stretchy) or set-content(Libui::Control:D $control, Bool:D(Int) $stretchy)

Appends a widget to the Box. Stretchy determines whether the widget should stretch to fill the available space or not.

delete-item(UInt:D $index)

Deletes the widget at index $index.

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.