- _guiInput
void _guiInput(InputEvent arg0)
- _updateHover
void _updateHover()
- addTab
void addTab(StringArg0 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()
- 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()
- 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)
- opAssign
Tabs opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(Tabs other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- removeTab
void removeTab(long tab_idx)
Removes 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 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 that 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, StringArg1 title)
Sets a title for the tab at index tab_idx.
- setTabsRearrangeGroup
void setTabsRearrangeGroup(long group_id)
Defines rearrange group id, choose for each Tabs the same value to enable tab drag between Tabs. Enable drag with set_drag_to_rearrange_enabled(true).
Tabs Control.
Simple tabs control, similar to TabContainer but is only in charge of drawing tabs, not interact with children.