Struct iui::controls::TabGroup[][src]

pub struct TabGroup { /* fields omitted */ }

Group of tabs, each of which shows a different sub-control.

Methods

impl TabGroup
[src]

Create an iui struct for this control from the raw pointer for it.

Unsafety

The given pointer must point to a valid control or memory unsafety may result.

Return the underlying pointer for this control.

impl TabGroup
[src]

Create a new, empty group of tabs.

Add the given control as a new tab in the tab group with the given name.

Returns the number of tabs in the group after adding the new tab.

Add the given control before the given index in the tab group, as a new tab with a given name.

Returns the number of tabs in the group after adding the new tab.

Remove the control at the given index in the tab group.

Returns the number of tabs in the group after removing the tab, or an error if that index was out of bounds.

NOTE: This will leak the deleted control! We have no way of actually getting it to decrement its reference count per libui's UI as of today, unless we maintain a separate list of children ourselves…

Determine whether or not the tab group provides margins around its children.

Set whether or not the tab group provides margins around its children.

Trait Implementations

impl Drop for TabGroup
[src]

Executes the destructor for this type. Read more

impl Clone for TabGroup
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Into<Control> for TabGroup
[src]

Performs the conversion.

Auto Trait Implementations

impl !Send for TabGroup

impl !Sync for TabGroup