[][src]Struct native_windows_gui::Tab

pub struct Tab {
    pub handle: ControlHandle,
}

A subwindow in a TabContainer widget

Fields

handle: ControlHandle

Implementations

impl Tab[src]

pub fn builder<'a>() -> TabBuilder<'a>[src]

pub fn set_text<'a>(&self, text: &'a str)[src]

Sets the title of the tab

pub fn set_image_index(&self, index: Option<i32>)[src]

Sets the image of the tab. index is the index of the image in the tab container image list.

This is only available if the "image-list" feature is enabled

pub fn image_index(&self) -> Option<i32>[src]

Returns the index of image of the tab. The index maps to the image list of the tab container.

This is only available if the "image-list" feature is enabled

pub fn visible(&self) -> bool[src]

Returns true if the control is visible to the user. Will return true even if the control is outside of the parent client view (ex: at the position (10000, 10000))

pub fn set_visible(&self, v: bool)[src]

Show or hide the control to the user

pub fn class_name(&self) -> &'static str[src]

Winapi class name used during control creation

pub fn flags(&self) -> u32[src]

Winapi base flags used during window creation

pub fn forced_flags(&self) -> u32[src]

Winapi flags required by the control

Trait Implementations

impl Debug for Tab[src]

impl Default for Tab[src]

impl Drop for Tab[src]

impl Eq for Tab[src]

impl<'_> From<&'_ Tab> for ControlHandle[src]

impl PartialEq<ControlHandle> for Tab[src]

impl PartialEq<Tab> for Tab[src]

impl PartialEq<Tab> for ControlHandle[src]

impl StructuralEq for Tab[src]

impl StructuralPartialEq for Tab[src]

Auto Trait Implementations

impl RefUnwindSafe for Tab

impl !Send for Tab

impl !Sync for Tab

impl Unpin for Tab

impl UnwindSafe for Tab

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.