Tabs Control.
    public class Tabs : Control

Simple tabs control, similar to TabContainer but is only in charge of drawing tabs, not interact with children.

Inheritance Chain

Constructors

    public Tabs()

Signals

    "reposition_active_tab_request" (int idx_to)

    "right_button_pressed" (int tab)

    "tab_changed" (int tab)

    "tab_clicked" (int tab)

    "tab_close" (int tab)

    "tab_hover" (int tab)

Properties

    public int CurrentTab { get; set; }

    public bool ScrollingEnabled { get; set; }

    public TabAlignEnum TabAlign { get; set; }

    public CloseButtonDisplayPolicy TabCloseDisplayPolicy { get; set; }

Methods

    public void AddTab(string title = "", Texture icon = null)

    public void EnsureTabVisible(int idx)

    public int GetCurrentTab()

Getter for CurrentTab

    public bool GetOffsetButtonsVisible()

    public bool GetScrollingEnabled()

Getter for ScrollingEnabled

    public TabAlignEnum GetTabAlign()

Getter for TabAlign

    public CloseButtonDisplayPolicy GetTabCloseDisplayPolicy()

Getter for TabCloseDisplayPolicy

    public int GetTabCount()

    public bool GetTabDisabled(int tabIdx)

    public Texture GetTabIcon(int tabIdx)

    public int GetTabOffset()

    public Rect2 GetTabRect(int tabIdx)

Returns tab Rect2 with local position and size.

    public string GetTabTitle(int tabIdx)

    public void MoveTab(int from, int to)

Rearrange tab.

    public void RemoveTab(int tabIdx)

    public void SetCurrentTab(int tabIdx)

Setter for CurrentTab

    public void SetScrollingEnabled(bool enabled)

Setter for ScrollingEnabled

    public void SetTabAlign(TabAlignEnum align)

Setter for TabAlign

    public void SetTabCloseDisplayPolicy(CloseButtonDisplayPolicy policy)

Setter for TabCloseDisplayPolicy

    public void SetTabDisabled(int tabIdx, bool disabled)

    public void SetTabIcon(int tabIdx, Texture icon)

    public void SetTabTitle(int tabIdx, string title)

Inner Types

CloseButtonDisplayPolicy

Name Value Description
ShowNever 0  
ShowActiveOnly 1  
ShowAlways 2  
Max 3  

TabAlignEnum

Name Value Description
Left 0  
Center 1  
Right 2  
Max 3  
Tags: