pub struct Tab {
pub handle: ControlHandle,
}Expand description
A subwindow in a TabContainer widget. A Tab control can only be added as a child of a TabContainer.
A Tab controls doesn’t do much on its own. See TabContainer for the tab specific events.
Builder parameters:
parent: Required. The Tab parent container.text: The tab textimage_index: The tab icon index in the tab container image list
Fields§
§handle: ControlHandleImplementations§
Source§impl Tab
impl Tab
pub fn builder<'a>() -> TabBuilder<'a>
Sourcepub fn set_image_index(&self, index: Option<i32>)
pub fn set_image_index(&self, index: Option<i32>)
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
Sourcepub fn image_index(&self) -> Option<i32>
pub fn image_index(&self) -> Option<i32>
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
Sourcepub fn visible(&self) -> bool
pub fn visible(&self) -> bool
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))
Sourcepub fn set_visible(&self, v: bool)
pub fn set_visible(&self, v: bool)
Show or hide the control to the user
Sourcepub fn class_name(&self) -> &'static str
pub fn class_name(&self) -> &'static str
Winapi class name used during control creation
Sourcepub fn forced_flags(&self) -> u32
pub fn forced_flags(&self) -> u32
Winapi flags required by the control