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 text
  • image_index: The tab icon index in the tab container image list

Fields

handle: ControlHandle

Implementations

Sets the title of the tab

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 base flags used during window creation

Winapi flags required by the control

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Executes the destructor for this type. Read more

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.