pub struct Tab<'ui> { /* private fields */ }Implementations§
source§impl<'ui> Tab<'ui>
impl<'ui> Tab<'ui>
sourcepub fn push_page(
&self,
control: &'ui impl DerefMut<Target = Control>,
name: impl Into<Vec<u8>>
) -> Result<NonNegativeInt, Error>
pub fn push_page( &self, control: &'ui impl DerefMut<Target = Control>, name: impl Into<Vec<u8>> ) -> Result<NonNegativeInt, Error>
Appends a new page with the given name, returning its index.
The new page is appended to the right of the tab.
sourcepub fn insert_item(
&self,
before: impl Into<NonNegativeInt>,
control: &'ui impl DerefMut<Target = Control>,
name: impl Into<Vec<u8>>
) -> Result<NonNegativeInt, Error>
pub fn insert_item( &self, before: impl Into<NonNegativeInt>, control: &'ui impl DerefMut<Target = Control>, name: impl Into<Vec<u8>> ) -> Result<NonNegativeInt, Error>
sourcepub fn is_page_margined(&self, index: impl Into<NonNegativeInt>) -> bool
pub fn is_page_margined(&self, index: impl Into<NonNegativeInt>) -> bool
sourcepub fn set_page_margined(&self, index: impl Into<NonNegativeInt>, value: bool)
pub fn set_page_margined(&self, index: impl Into<NonNegativeInt>, value: bool)
Sets whether or not the page at the given index should be margined.
Panics
Panics if index is out of bounds.
Methods from Deref<Target = Control>§
sourcepub fn is_visible(&self) -> bool
pub fn is_visible(&self) -> bool
Determines if this control is visible.
Controls are visible by default except for Windows, which are invisible
by default.
sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Determines if this control responds to user interaction.
Controls are enabled by default.
sourcepub fn is_enabled_to_user(&self) -> bool
pub fn is_enabled_to_user(&self) -> bool
Determines if this control, and all of its parent controls, are enabled.
If this control is not a child of a parent control, then this function is equivalent to
is_enabled.
sourcepub fn native_handle(&self) -> *mut c_void
pub fn native_handle(&self) -> *mut c_void
A handle to the underlying OS object.
Trait Implementations§
source§impl<'ui> Container for Tab<'ui>
impl<'ui> Container for Tab<'ui>
source§fn child_count(&self) -> NonNegativeInt
fn child_count(&self) -> NonNegativeInt
The number of child controls this control contains. Read more
source§fn remove_child(&self, index: impl Into<NonNegativeInt>)
fn remove_child(&self, index: impl Into<NonNegativeInt>)
Removes the child control at the given index. Read more
fn is_empty(&self) -> bool
source§fn contains_child(&self, index: impl Into<NonNegativeInt>) -> bool
fn contains_child(&self, index: impl Into<NonNegativeInt>) -> bool
Determines if a child control at the given index exists.