Struct native_windows_gui::Tab [−][src]
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: ControlHandle
Implementations
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
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
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))
Show or hide the control to the user
Winapi class name used during control creation
Winapi flags required by the control
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Tab
impl UnwindSafe for Tab