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]

[src]

[src]

[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.

[src]

Return the underlying pointer for this control.

impl TabGroup
[src]

[src]

Create a new, empty group of tabs.

[src]

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.

[src]

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.

[src]

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…

[src]

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

[src]

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

Trait Implementations

impl Drop for TabGroup
[src]

[src]

Executes the destructor for this type. Read more

impl Clone for TabGroup
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Into<Control> for TabGroup
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl !Send for TabGroup

impl !Sync for TabGroup