- _guiInput
void _guiInput(InputEvent arg0)
- _onMouseExited
void _onMouseExited()
- _updateHover
void _updateHover()
- addTab
void addTab(String title, Texture icon)
- ensureTabVisible
void ensureTabVisible(long idx)
Moves the scroll view to make the tab visible.
- getCurrentTab
long getCurrentTab()
- getDragToRearrangeEnabled
bool getDragToRearrangeEnabled()
- getOffsetButtonsVisible
bool getOffsetButtonsVisible()
Returns true if the offset buttons (the ones that appear when there's not enough space for all tabs) are visible.
- getPreviousTab
long getPreviousTab()
Returns the previously active tab index.
- getScrollingEnabled
bool getScrollingEnabled()
- getSelectWithRmb
bool getSelectWithRmb()
Returns true if select with right mouse button is enabled.
- getTabAlign
Tabs.TabAlign getTabAlign()
- getTabCloseDisplayPolicy
Tabs.CloseButtonDisplayPolicy getTabCloseDisplayPolicy()
- 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.
- getTabOffset
long getTabOffset()
Returns the number of hidden tabs offsetted to the left.
- getTabRect
Rect2 getTabRect(long tab_idx)
Returns tab Rect2 with local position and size.
- 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()
Returns the Tabs' rearrange group ID.
- moveTab
void moveTab(long from, long to)
Moves a tab from from to to.
- opAssign
typeof(null) opAssign(typeof(null) n)
- opEquals
bool opEquals(Tabs other)
- opEquals
bool opEquals(typeof(null) n)
- removeTab
void removeTab(long tab_idx)
Removes the tab at index tab_idx.
- setCurrentTab
void setCurrentTab(long tab_idx)
- setDragToRearrangeEnabled
void setDragToRearrangeEnabled(bool enabled)
- setScrollingEnabled
void setScrollingEnabled(bool enabled)
- setSelectWithRmb
void setSelectWithRmb(bool enabled)
If true, enables selecting a tab with the right mouse button.
- setTabAlign
void setTabAlign(long _align)
- setTabCloseDisplayPolicy
void setTabCloseDisplayPolicy(long policy)
- 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 it is 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.
- setTabsRearrangeGroup
void setTabsRearrangeGroup(long group_id)
Defines the rearrange group ID. Choose for each Tabs the same value to dragging tabs between Tabs. Enable drag with set_drag_to_rearrange_enabled(true).
- toHash
size_t toHash()
Tabs control.
Simple tabs control, similar to TabContainer but is only in charge of drawing tabs, not interacting with children.