Struct native_windows_gui::TabsContainer [−][src]
pub struct TabsContainer { pub handle: ControlHandle, // some fields omitted }
Expand description
A tabs container is a frame-like control that can contain Tab
control.
Tabs are added by specifying the TabsContainer
as parent in the Tab
builder.
Do not add other control type as children to the TabsContainer
Requires the tabs
feature
Builder parameters:
parent
: Required. The button parent container.position
: The tab container position.font
: The font used for the tabs titleflags
: A combination of theTabsContainerFlags
values.ex_flags
: A combination of win32 window extended flags. Unlikeflags
, ex_flags must be used straight from winapiimage_list
: The image list specifying the tabs icons
Control events:
TabsContainerChanged
: The select tab of a TabsContainer changedTabsContainerChanging
: The selected tab of a TabsContainer is about to be changedMousePress(_)
: Generic mouse press events on the buttonOnMouseMove
: Generic mouse mouse eventOnMouseWheel
: Generic mouse wheel event
Fields
handle: ControlHandle
Implementations
Return the index of the currently selected tab
May return usize::max_value()
if no tab is selected
Set the currently selected tab by index
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.
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.
Return true if the control user can interact with the control, return false otherwise
Enable or disable the control
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))
Show or hide the control to the user
Return the position of the tabs container in the parent window
Set the position of the tabs container in the parent window
Winapi class name used during control creation
Winapi flags required by the control
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for TabsContainer
impl !Send for TabsContainer
impl !Sync for TabsContainer
impl Unpin for TabsContainer
impl UnwindSafe for TabsContainer