[][src]Struct native_windows_gui::TabsContainer

pub struct TabsContainer {
    pub handle: ControlHandle,
    // some fields omitted
}

A push button is a rectangle containing an application-defined text label, an icon, or a bitmap that indicates what the button does when the user selects it.

Requires the tabs feature

Fields

handle: ControlHandle

Implementations

impl TabsContainer[src]

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

pub fn selected_tab(&self) -> usize[src]

Return the index of the currently selected tab May return usize::max_value() if no tab is selected

pub fn set_selected_tab(&self, index: usize)[src]

Set the currently selected tab by index

pub fn tab_count(&self) -> usize[src]

Return the number of tabs in the view

pub fn set_image_list(&self, list: Option<&ImageList>)[src]

Sets the image list of the tab container. Pass None to remove the image list.

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

pub fn image_list(&self) -> Option<ImageList>[src]

Returns a reference to the current image list in the tab container. The image list is not owned and dropping it won't free the resources.

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

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

Return true if the control currently has the keyboard focus

pub fn set_focus(&self)[src]

Set the keyboard focus on the button.

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

Return true if the control user can interact with the control, return false otherwise

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

Enable or disable the control

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

Return 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 size(&self) -> (u32, u32)[src]

Return the size of the tabs container in the parent window

pub fn set_size(&self, x: u32, y: u32)[src]

Set the size of the tabs container in the parent window

pub fn position(&self) -> (i32, i32)[src]

Return the position of the tabs container in the parent window

pub fn set_position(&self, x: i32, y: i32)[src]

Set the position of the tabs container in the parent window

pub fn font(&self) -> Option<Font>[src]

Return the font of the control

pub fn set_font(&self, font: Option<&Font>)[src]

Set the font of the control

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 Default for TabsContainer[src]

impl Drop for TabsContainer[src]

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

impl PartialEq<ControlHandle> for TabsContainer[src]

impl PartialEq<TabsContainer> for TabsContainer[src]

impl PartialEq<TabsContainer> for ControlHandle[src]

Auto Trait Implementations

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.