.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_Tabs: Tabs ==== **Inherits:** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Tabs Control. Member Functions ---------------- +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_tab` **(** :ref:`String` title="", :ref:`Texture` icon=NULL **)** | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`ensure_tab_visible` **(** :ref:`int` idx **)** | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_current_tab` **(** **)** const | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_tab_align` **(** **)** const | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_tab_count` **(** **)** const | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Texture` | :ref:`get_tab_icon` **(** :ref:`int` tab_idx **)** const | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_tab_title` **(** :ref:`int` tab_idx **)** const | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove_tab` **(** :ref:`int` tab_idx **)** | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_current_tab` **(** :ref:`int` tab_idx **)** | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_tab_align` **(** :ref:`int` align **)** | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_tab_icon` **(** :ref:`int` tab_idx, :ref:`Texture` icon **)** | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_tab_title` **(** :ref:`int` tab_idx, :ref:`String` title **)** | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ Signals ------- - **right_button_pressed** **(** :ref:`int` tab **)** - **tab_changed** **(** :ref:`int` tab **)** - **tab_close** **(** :ref:`int` tab **)** Numeric Constants ----------------- - **ALIGN_LEFT** = **0** - **ALIGN_CENTER** = **1** - **ALIGN_RIGHT** = **2** - **CLOSE_BUTTON_SHOW_ACTIVE_ONLY** = **1** - **CLOSE_BUTTON_SHOW_ALWAYS** = **2** - **CLOSE_BUTTON_SHOW_NEVER** = **0** Description ----------- Simple tabs control, similar to :ref:`TabContainer` but is only in charge of drawing tabs, not interact with children. Member Function Description --------------------------- .. _class_Tabs_add_tab: - void **add_tab** **(** :ref:`String` title="", :ref:`Texture` icon=NULL **)** .. _class_Tabs_ensure_tab_visible: - void **ensure_tab_visible** **(** :ref:`int` idx **)** .. _class_Tabs_get_current_tab: - :ref:`int` **get_current_tab** **(** **)** const .. _class_Tabs_get_tab_align: - :ref:`int` **get_tab_align** **(** **)** const .. _class_Tabs_get_tab_count: - :ref:`int` **get_tab_count** **(** **)** const .. _class_Tabs_get_tab_icon: - :ref:`Texture` **get_tab_icon** **(** :ref:`int` tab_idx **)** const .. _class_Tabs_get_tab_title: - :ref:`String` **get_tab_title** **(** :ref:`int` tab_idx **)** const .. _class_Tabs_remove_tab: - void **remove_tab** **(** :ref:`int` tab_idx **)** .. _class_Tabs_set_current_tab: - void **set_current_tab** **(** :ref:`int` tab_idx **)** .. _class_Tabs_set_tab_align: - void **set_tab_align** **(** :ref:`int` align **)** .. _class_Tabs_set_tab_icon: - void **set_tab_icon** **(** :ref:`int` tab_idx, :ref:`Texture` icon **)** .. _class_Tabs_set_tab_title: - void **set_tab_title** **(** :ref:`int` tab_idx, :ref:`String` title **)**