Tab - Garland-g/perl6-libui GitHub Wiki

Tab

Libui::Tab

A set of named pages for placing items in.

Methods

new()

Creates a Tab.

set-content(Str:D $name, Libui::Control $control or append(Str $name, Libui::Control $control)

Appends a new page and places the widget $control inside it.

insert(Str:D $name, UInt $before, Libui::Control $control)

Inserts a new page into slot $before and places the widget $control inside it.

delete-item(UInt $page)

Deletes the page in slot $page.

pages() returns UInt

Returns the number of pages.

margined(UInt $page) returns Bool

Returns the margined property of page $page.

set-margined(UInt $page, Bool:D(Int) $margined) or margined(Int $page, Bool:D(Int) $margined)

Sets the margined property of page $page.