- _childRenamedCallback
void _childRenamedCallback()
- _guiInput
void _guiInput(InputEvent arg0)
- _onMouseExited
void _onMouseExited()
- _onThemeChanged
void _onThemeChanged()
- _updateCurrentTab
void _updateCurrentTab()
- areTabsVisible
bool areTabsVisible()
- getCurrentTab
long getCurrentTab()
- getCurrentTabControl
Control getCurrentTabControl()
Returns the child Control node located at the active tab index.
- getDragToRearrangeEnabled
bool getDragToRearrangeEnabled()
- getPopup
Popup getPopup()
Returns the Popup node instance if one has been set already with setPopup.
- getPreviousTab
long getPreviousTab()
Returns the previously active tab index.
- getTabAlign
TabContainer.TabAlign getTabAlign()
- getTabControl
Control getTabControl(long tab_idx)
Returns the Control node from the tab at index tab_idx.
- getTabCount
long getTabCount()
Returns the number of tabs.
- getTabDisabled
bool getTabDisabled(long tab_idx)
Returns true if the tab at index tab_idx is disabled.
- getTabIcon
Ref!Texture getTabIcon(long tab_idx)
Returns the Texture for the tab at index tab_idx or null if the tab has no Texture.
- getTabTitle
String getTabTitle(long tab_idx)
Returns the title of the tab at index tab_idx. Tab titles default to the name of the indexed child node, but this can be overridden with setTabTitle.
- getTabsRearrangeGroup
long getTabsRearrangeGroup()
- getUseHiddenTabsForMinSize
bool getUseHiddenTabsForMinSize()
- isAllTabsInFront
bool isAllTabsInFront()
- opAssign
typeof(null) opAssign(typeof(null) n)
- opEquals
bool opEquals(TabContainer other)
- opEquals
bool opEquals(typeof(null) n)
- setAllTabsInFront
void setAllTabsInFront(bool is_front)
- setCurrentTab
void setCurrentTab(long tab_idx)
- setDragToRearrangeEnabled
void setDragToRearrangeEnabled(bool enabled)
- setPopup
void setPopup(Node popup)
If set on a Popup node instance, a popup menu icon appears in the top-right corner of the TabContainer. Clicking it will expand the Popup node.
- setTabAlign
void setTabAlign(long _align)
- setTabDisabled
void setTabDisabled(long tab_idx, bool disabled)
If disabled is false, hides the tab at index tab_idx.
Note: Its title text will remain, unless also removed with setTabTitle.
- setTabIcon
void setTabIcon(long tab_idx, Texture icon)
Sets an icon for the tab at index tab_idx.
- setTabTitle
void setTabTitle(long tab_idx, String title)
Sets a title for the tab at index tab_idx. Tab titles default to the name of the indexed child node, but this can be overridden with setTabTitle.
- setTabsRearrangeGroup
void setTabsRearrangeGroup(long group_id)
Defines rearrange group id, choose for each TabContainer the same value to enable tab drag between TabContainer. Enable drag with set_drag_to_rearrange_enabled(true).
- setTabsVisible
void setTabsVisible(bool visible)
- setUseHiddenTabsForMinSize
void setUseHiddenTabsForMinSize(bool enabled)
- toHash
size_t toHash()
- allTabsInFront
bool allTabsInFront [@property getter]
bool allTabsInFront [@property setter]
If true, all tabs are drawn in front of the panel. If false, inactive tabs are drawn behind the panel.
- currentTab
long currentTab [@property getter]
long currentTab [@property setter]
The current tab index. When set, this index's Control node's visible property is set to true and all others are set to false.
- dragToRearrangeEnabled
bool dragToRearrangeEnabled [@property getter]
bool dragToRearrangeEnabled [@property setter]
If true, tabs can be rearranged with mouse drag.
- tabAlign
TabContainer.TabAlign tabAlign [@property getter]
long tabAlign [@property setter]
The alignment of all tabs in the tab container. See the tabalign constants for details.
- tabsVisible
bool tabsVisible [@property getter]
bool tabsVisible [@property setter]
If true, tabs are visible. If false, tabs' content and titles are hidden.
- useHiddenTabsForMinSize
bool useHiddenTabsForMinSize [@property getter]
bool useHiddenTabsForMinSize [@property setter]
If true, children Control nodes that are hidden have their minimum size take into account in the total, instead of only the currently visible one.
Tabbed container.
Sets the active tab's visible property to the value true. Sets all other children's to false. Ignores non-Control children. Individual tabs are always visible unless you use setTabDisabled and setTabTitle to hide it. To hide only a tab's content, nest the content inside a child Control, so it receives the TabContainer's visibility setting instead.