1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183 |
- :github_url: hide
- .. DO NOT EDIT THIS FILE!!!
- .. Generated automatically from Godot engine sources.
- .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
- .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/TabContainer.xml.
- .. _class_TabContainer:
- TabContainer
- ============
- **Inherits:** :ref:`Container<class_Container>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
- A container that creates a tab for each child control, displaying only the active tab's control.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- Arranges child controls into a tabbed view, creating a tab for each one. The active tab's corresponding control is made visible, while all other child controls are hidden. Ignores non-control children.
- \ **Note:** The drawing of the clickable tabs is handled by this node; :ref:`TabBar<class_TabBar>` is not needed.
- .. rst-class:: classref-introduction-group
- Tutorials
- ---------
- - :doc:`Using Containers <../tutorials/ui/gui_containers>`
- .. rst-class:: classref-reftable-group
- Properties
- ----------
- .. table::
- :widths: auto
- +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
- | :ref:`bool<class_bool>` | :ref:`all_tabs_in_front<class_TabContainer_property_all_tabs_in_front>` | ``false`` |
- +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
- | :ref:`bool<class_bool>` | :ref:`clip_tabs<class_TabContainer_property_clip_tabs>` | ``true`` |
- +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
- | :ref:`int<class_int>` | :ref:`current_tab<class_TabContainer_property_current_tab>` | ``-1`` |
- +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
- | :ref:`bool<class_bool>` | :ref:`deselect_enabled<class_TabContainer_property_deselect_enabled>` | ``false`` |
- +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
- | :ref:`bool<class_bool>` | :ref:`drag_to_rearrange_enabled<class_TabContainer_property_drag_to_rearrange_enabled>` | ``false`` |
- +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
- | :ref:`AlignmentMode<enum_TabBar_AlignmentMode>` | :ref:`tab_alignment<class_TabContainer_property_tab_alignment>` | ``0`` |
- +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
- | :ref:`FocusMode<enum_Control_FocusMode>` | :ref:`tab_focus_mode<class_TabContainer_property_tab_focus_mode>` | ``2`` |
- +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
- | :ref:`TabPosition<enum_TabContainer_TabPosition>` | :ref:`tabs_position<class_TabContainer_property_tabs_position>` | ``0`` |
- +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
- | :ref:`int<class_int>` | :ref:`tabs_rearrange_group<class_TabContainer_property_tabs_rearrange_group>` | ``-1`` |
- +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
- | :ref:`bool<class_bool>` | :ref:`tabs_visible<class_TabContainer_property_tabs_visible>` | ``true`` |
- +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
- | :ref:`bool<class_bool>` | :ref:`use_hidden_tabs_for_min_size<class_TabContainer_property_use_hidden_tabs_for_min_size>` | ``false`` |
- +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
- .. rst-class:: classref-reftable-group
- Methods
- -------
- .. table::
- :widths: auto
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Control<class_Control>` | :ref:`get_current_tab_control<class_TabContainer_method_get_current_tab_control>`\ (\ ) |const| |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Popup<class_Popup>` | :ref:`get_popup<class_TabContainer_method_get_popup>`\ (\ ) |const| |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_previous_tab<class_TabContainer_method_get_previous_tab>`\ (\ ) |const| |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`TabBar<class_TabBar>` | :ref:`get_tab_bar<class_TabContainer_method_get_tab_bar>`\ (\ ) |const| |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`get_tab_button_icon<class_TabContainer_method_get_tab_button_icon>`\ (\ tab_idx\: :ref:`int<class_int>`\ ) |const| |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Control<class_Control>` | :ref:`get_tab_control<class_TabContainer_method_get_tab_control>`\ (\ tab_idx\: :ref:`int<class_int>`\ ) |const| |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_tab_count<class_TabContainer_method_get_tab_count>`\ (\ ) |const| |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`get_tab_icon<class_TabContainer_method_get_tab_icon>`\ (\ tab_idx\: :ref:`int<class_int>`\ ) |const| |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_tab_icon_max_width<class_TabContainer_method_get_tab_icon_max_width>`\ (\ tab_idx\: :ref:`int<class_int>`\ ) |const| |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_tab_idx_at_point<class_TabContainer_method_get_tab_idx_at_point>`\ (\ point\: :ref:`Vector2<class_Vector2>`\ ) |const| |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_tab_idx_from_control<class_TabContainer_method_get_tab_idx_from_control>`\ (\ control\: :ref:`Control<class_Control>`\ ) |const| |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Variant<class_Variant>` | :ref:`get_tab_metadata<class_TabContainer_method_get_tab_metadata>`\ (\ tab_idx\: :ref:`int<class_int>`\ ) |const| |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`get_tab_title<class_TabContainer_method_get_tab_title>`\ (\ tab_idx\: :ref:`int<class_int>`\ ) |const| |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`get_tab_tooltip<class_TabContainer_method_get_tab_tooltip>`\ (\ tab_idx\: :ref:`int<class_int>`\ ) |const| |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_tab_disabled<class_TabContainer_method_is_tab_disabled>`\ (\ tab_idx\: :ref:`int<class_int>`\ ) |const| |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_tab_hidden<class_TabContainer_method_is_tab_hidden>`\ (\ tab_idx\: :ref:`int<class_int>`\ ) |const| |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`select_next_available<class_TabContainer_method_select_next_available>`\ (\ ) |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`select_previous_available<class_TabContainer_method_select_previous_available>`\ (\ ) |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_popup<class_TabContainer_method_set_popup>`\ (\ popup\: :ref:`Node<class_Node>`\ ) |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_tab_button_icon<class_TabContainer_method_set_tab_button_icon>`\ (\ tab_idx\: :ref:`int<class_int>`, icon\: :ref:`Texture2D<class_Texture2D>`\ ) |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_tab_disabled<class_TabContainer_method_set_tab_disabled>`\ (\ tab_idx\: :ref:`int<class_int>`, disabled\: :ref:`bool<class_bool>`\ ) |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_tab_hidden<class_TabContainer_method_set_tab_hidden>`\ (\ tab_idx\: :ref:`int<class_int>`, hidden\: :ref:`bool<class_bool>`\ ) |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_tab_icon<class_TabContainer_method_set_tab_icon>`\ (\ tab_idx\: :ref:`int<class_int>`, icon\: :ref:`Texture2D<class_Texture2D>`\ ) |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_tab_icon_max_width<class_TabContainer_method_set_tab_icon_max_width>`\ (\ tab_idx\: :ref:`int<class_int>`, width\: :ref:`int<class_int>`\ ) |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_tab_metadata<class_TabContainer_method_set_tab_metadata>`\ (\ tab_idx\: :ref:`int<class_int>`, metadata\: :ref:`Variant<class_Variant>`\ ) |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_tab_title<class_TabContainer_method_set_tab_title>`\ (\ tab_idx\: :ref:`int<class_int>`, title\: :ref:`String<class_String>`\ ) |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_tab_tooltip<class_TabContainer_method_set_tab_tooltip>`\ (\ tab_idx\: :ref:`int<class_int>`, tooltip\: :ref:`String<class_String>`\ ) |
- +-----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
- .. rst-class:: classref-reftable-group
- Theme Properties
- ----------------
- .. table::
- :widths: auto
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`drop_mark_color<class_TabContainer_theme_color_drop_mark_color>` | ``Color(1, 1, 1, 1)`` |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`font_disabled_color<class_TabContainer_theme_color_font_disabled_color>` | ``Color(0.875, 0.875, 0.875, 0.5)`` |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`font_hovered_color<class_TabContainer_theme_color_font_hovered_color>` | ``Color(0.95, 0.95, 0.95, 1)`` |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`font_outline_color<class_TabContainer_theme_color_font_outline_color>` | ``Color(0, 0, 0, 1)`` |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`font_selected_color<class_TabContainer_theme_color_font_selected_color>` | ``Color(0.95, 0.95, 0.95, 1)`` |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`font_unselected_color<class_TabContainer_theme_color_font_unselected_color>` | ``Color(0.7, 0.7, 0.7, 1)`` |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`int<class_int>` | :ref:`icon_max_width<class_TabContainer_theme_constant_icon_max_width>` | ``0`` |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`int<class_int>` | :ref:`icon_separation<class_TabContainer_theme_constant_icon_separation>` | ``4`` |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`int<class_int>` | :ref:`outline_size<class_TabContainer_theme_constant_outline_size>` | ``0`` |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`int<class_int>` | :ref:`side_margin<class_TabContainer_theme_constant_side_margin>` | ``8`` |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Font<class_Font>` | :ref:`font<class_TabContainer_theme_font_font>` | |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`int<class_int>` | :ref:`font_size<class_TabContainer_theme_font_size_font_size>` | |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`decrement<class_TabContainer_theme_icon_decrement>` | |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`decrement_highlight<class_TabContainer_theme_icon_decrement_highlight>` | |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`drop_mark<class_TabContainer_theme_icon_drop_mark>` | |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`increment<class_TabContainer_theme_icon_increment>` | |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`increment_highlight<class_TabContainer_theme_icon_increment_highlight>` | |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`menu<class_TabContainer_theme_icon_menu>` | |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`menu_highlight<class_TabContainer_theme_icon_menu_highlight>` | |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`panel<class_TabContainer_theme_style_panel>` | |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`tab_disabled<class_TabContainer_theme_style_tab_disabled>` | |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`tab_focus<class_TabContainer_theme_style_tab_focus>` | |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`tab_hovered<class_TabContainer_theme_style_tab_hovered>` | |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`tab_selected<class_TabContainer_theme_style_tab_selected>` | |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`tab_unselected<class_TabContainer_theme_style_tab_unselected>` | |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`tabbar_background<class_TabContainer_theme_style_tabbar_background>` | |
- +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Signals
- -------
- .. _class_TabContainer_signal_active_tab_rearranged:
- .. rst-class:: classref-signal
- **active_tab_rearranged**\ (\ idx_to\: :ref:`int<class_int>`\ ) :ref:`🔗<class_TabContainer_signal_active_tab_rearranged>`
- Emitted when the active tab is rearranged via mouse drag. See :ref:`drag_to_rearrange_enabled<class_TabContainer_property_drag_to_rearrange_enabled>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_signal_pre_popup_pressed:
- .. rst-class:: classref-signal
- **pre_popup_pressed**\ (\ ) :ref:`🔗<class_TabContainer_signal_pre_popup_pressed>`
- Emitted when the **TabContainer**'s :ref:`Popup<class_Popup>` button is clicked. See :ref:`set_popup<class_TabContainer_method_set_popup>` for details.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_signal_tab_button_pressed:
- .. rst-class:: classref-signal
- **tab_button_pressed**\ (\ tab\: :ref:`int<class_int>`\ ) :ref:`🔗<class_TabContainer_signal_tab_button_pressed>`
- Emitted when the user clicks on the button icon on this tab.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_signal_tab_changed:
- .. rst-class:: classref-signal
- **tab_changed**\ (\ tab\: :ref:`int<class_int>`\ ) :ref:`🔗<class_TabContainer_signal_tab_changed>`
- Emitted when switching to another tab.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_signal_tab_clicked:
- .. rst-class:: classref-signal
- **tab_clicked**\ (\ tab\: :ref:`int<class_int>`\ ) :ref:`🔗<class_TabContainer_signal_tab_clicked>`
- Emitted when a tab is clicked, even if it is the current tab.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_signal_tab_hovered:
- .. rst-class:: classref-signal
- **tab_hovered**\ (\ tab\: :ref:`int<class_int>`\ ) :ref:`🔗<class_TabContainer_signal_tab_hovered>`
- Emitted when a tab is hovered by the mouse.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_signal_tab_selected:
- .. rst-class:: classref-signal
- **tab_selected**\ (\ tab\: :ref:`int<class_int>`\ ) :ref:`🔗<class_TabContainer_signal_tab_selected>`
- Emitted when a tab is selected via click, directional input, or script, even if it is the current tab.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Enumerations
- ------------
- .. _enum_TabContainer_TabPosition:
- .. rst-class:: classref-enumeration
- enum **TabPosition**: :ref:`🔗<enum_TabContainer_TabPosition>`
- .. _class_TabContainer_constant_POSITION_TOP:
- .. rst-class:: classref-enumeration-constant
- :ref:`TabPosition<enum_TabContainer_TabPosition>` **POSITION_TOP** = ``0``
- Places the tab bar at the top.
- .. _class_TabContainer_constant_POSITION_BOTTOM:
- .. rst-class:: classref-enumeration-constant
- :ref:`TabPosition<enum_TabContainer_TabPosition>` **POSITION_BOTTOM** = ``1``
- Places the tab bar at the bottom. The tab bar's :ref:`StyleBox<class_StyleBox>` will be flipped vertically.
- .. _class_TabContainer_constant_POSITION_MAX:
- .. rst-class:: classref-enumeration-constant
- :ref:`TabPosition<enum_TabContainer_TabPosition>` **POSITION_MAX** = ``2``
- Represents the size of the :ref:`TabPosition<enum_TabContainer_TabPosition>` enum.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Property Descriptions
- ---------------------
- .. _class_TabContainer_property_all_tabs_in_front:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **all_tabs_in_front** = ``false`` :ref:`🔗<class_TabContainer_property_all_tabs_in_front>`
- .. rst-class:: classref-property-setget
- - |void| **set_all_tabs_in_front**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **is_all_tabs_in_front**\ (\ )
- If ``true``, all tabs are drawn in front of the panel. If ``false``, inactive tabs are drawn behind the panel.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_property_clip_tabs:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **clip_tabs** = ``true`` :ref:`🔗<class_TabContainer_property_clip_tabs>`
- .. rst-class:: classref-property-setget
- - |void| **set_clip_tabs**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **get_clip_tabs**\ (\ )
- If ``true``, tabs overflowing this node's width will be hidden, displaying two navigation buttons instead. Otherwise, this node's minimum size is updated so that all tabs are visible.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_property_current_tab:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **current_tab** = ``-1`` :ref:`🔗<class_TabContainer_property_current_tab>`
- .. rst-class:: classref-property-setget
- - |void| **set_current_tab**\ (\ value\: :ref:`int<class_int>`\ )
- - :ref:`int<class_int>` **get_current_tab**\ (\ )
- The current tab index. When set, this index's :ref:`Control<class_Control>` node's ``visible`` property is set to ``true`` and all others are set to ``false``.
- A value of ``-1`` means that no tab is selected.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_property_deselect_enabled:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **deselect_enabled** = ``false`` :ref:`🔗<class_TabContainer_property_deselect_enabled>`
- .. rst-class:: classref-property-setget
- - |void| **set_deselect_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **get_deselect_enabled**\ (\ )
- If ``true``, all tabs can be deselected so that no tab is selected. Click on the :ref:`current_tab<class_TabContainer_property_current_tab>` to deselect it.
- Only the tab header will be shown if no tabs are selected.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_property_drag_to_rearrange_enabled:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **drag_to_rearrange_enabled** = ``false`` :ref:`🔗<class_TabContainer_property_drag_to_rearrange_enabled>`
- .. rst-class:: classref-property-setget
- - |void| **set_drag_to_rearrange_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **get_drag_to_rearrange_enabled**\ (\ )
- If ``true``, tabs can be rearranged with mouse drag.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_property_tab_alignment:
- .. rst-class:: classref-property
- :ref:`AlignmentMode<enum_TabBar_AlignmentMode>` **tab_alignment** = ``0`` :ref:`🔗<class_TabContainer_property_tab_alignment>`
- .. rst-class:: classref-property-setget
- - |void| **set_tab_alignment**\ (\ value\: :ref:`AlignmentMode<enum_TabBar_AlignmentMode>`\ )
- - :ref:`AlignmentMode<enum_TabBar_AlignmentMode>` **get_tab_alignment**\ (\ )
- Sets the position at which tabs will be placed. See :ref:`AlignmentMode<enum_TabBar_AlignmentMode>` for details.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_property_tab_focus_mode:
- .. rst-class:: classref-property
- :ref:`FocusMode<enum_Control_FocusMode>` **tab_focus_mode** = ``2`` :ref:`🔗<class_TabContainer_property_tab_focus_mode>`
- .. rst-class:: classref-property-setget
- - |void| **set_tab_focus_mode**\ (\ value\: :ref:`FocusMode<enum_Control_FocusMode>`\ )
- - :ref:`FocusMode<enum_Control_FocusMode>` **get_tab_focus_mode**\ (\ )
- The focus access mode for the internal :ref:`TabBar<class_TabBar>` node.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_property_tabs_position:
- .. rst-class:: classref-property
- :ref:`TabPosition<enum_TabContainer_TabPosition>` **tabs_position** = ``0`` :ref:`🔗<class_TabContainer_property_tabs_position>`
- .. rst-class:: classref-property-setget
- - |void| **set_tabs_position**\ (\ value\: :ref:`TabPosition<enum_TabContainer_TabPosition>`\ )
- - :ref:`TabPosition<enum_TabContainer_TabPosition>` **get_tabs_position**\ (\ )
- Sets the position of the tab bar. See :ref:`TabPosition<enum_TabContainer_TabPosition>` for details.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_property_tabs_rearrange_group:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **tabs_rearrange_group** = ``-1`` :ref:`🔗<class_TabContainer_property_tabs_rearrange_group>`
- .. rst-class:: classref-property-setget
- - |void| **set_tabs_rearrange_group**\ (\ value\: :ref:`int<class_int>`\ )
- - :ref:`int<class_int>` **get_tabs_rearrange_group**\ (\ )
- **TabContainer**\ s with the same rearrange group ID will allow dragging the tabs between them. Enable drag with :ref:`drag_to_rearrange_enabled<class_TabContainer_property_drag_to_rearrange_enabled>`.
- Setting this to ``-1`` will disable rearranging between **TabContainer**\ s.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_property_tabs_visible:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **tabs_visible** = ``true`` :ref:`🔗<class_TabContainer_property_tabs_visible>`
- .. rst-class:: classref-property-setget
- - |void| **set_tabs_visible**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **are_tabs_visible**\ (\ )
- If ``true``, tabs are visible. If ``false``, tabs' content and titles are hidden.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_property_use_hidden_tabs_for_min_size:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **use_hidden_tabs_for_min_size** = ``false`` :ref:`🔗<class_TabContainer_property_use_hidden_tabs_for_min_size>`
- .. rst-class:: classref-property-setget
- - |void| **set_use_hidden_tabs_for_min_size**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **get_use_hidden_tabs_for_min_size**\ (\ )
- If ``true``, child :ref:`Control<class_Control>` nodes that are hidden have their minimum size take into account in the total, instead of only the currently visible one.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Method Descriptions
- -------------------
- .. _class_TabContainer_method_get_current_tab_control:
- .. rst-class:: classref-method
- :ref:`Control<class_Control>` **get_current_tab_control**\ (\ ) |const| :ref:`🔗<class_TabContainer_method_get_current_tab_control>`
- Returns the child :ref:`Control<class_Control>` node located at the active tab index.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_get_popup:
- .. rst-class:: classref-method
- :ref:`Popup<class_Popup>` **get_popup**\ (\ ) |const| :ref:`🔗<class_TabContainer_method_get_popup>`
- Returns the :ref:`Popup<class_Popup>` node instance if one has been set already with :ref:`set_popup<class_TabContainer_method_set_popup>`.
- \ **Warning:** This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their :ref:`Window.visible<class_Window_property_visible>` property.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_get_previous_tab:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_previous_tab**\ (\ ) |const| :ref:`🔗<class_TabContainer_method_get_previous_tab>`
- Returns the previously active tab index.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_get_tab_bar:
- .. rst-class:: classref-method
- :ref:`TabBar<class_TabBar>` **get_tab_bar**\ (\ ) |const| :ref:`🔗<class_TabContainer_method_get_tab_bar>`
- Returns the :ref:`TabBar<class_TabBar>` contained in this container.
- \ **Warning:** This is a required internal node, removing and freeing it or editing its tabs may cause a crash. If you wish to edit the tabs, use the methods provided in **TabContainer**.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_get_tab_button_icon:
- .. rst-class:: classref-method
- :ref:`Texture2D<class_Texture2D>` **get_tab_button_icon**\ (\ tab_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_TabContainer_method_get_tab_button_icon>`
- Returns the button icon from the tab at index ``tab_idx``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_get_tab_control:
- .. rst-class:: classref-method
- :ref:`Control<class_Control>` **get_tab_control**\ (\ tab_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_TabContainer_method_get_tab_control>`
- Returns the :ref:`Control<class_Control>` node from the tab at index ``tab_idx``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_get_tab_count:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_tab_count**\ (\ ) |const| :ref:`🔗<class_TabContainer_method_get_tab_count>`
- Returns the number of tabs.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_get_tab_icon:
- .. rst-class:: classref-method
- :ref:`Texture2D<class_Texture2D>` **get_tab_icon**\ (\ tab_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_TabContainer_method_get_tab_icon>`
- Returns the :ref:`Texture2D<class_Texture2D>` for the tab at index ``tab_idx`` or ``null`` if the tab has no :ref:`Texture2D<class_Texture2D>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_get_tab_icon_max_width:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_tab_icon_max_width**\ (\ tab_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_TabContainer_method_get_tab_icon_max_width>`
- Returns the maximum allowed width of the icon for the tab at index ``tab_idx``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_get_tab_idx_at_point:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_tab_idx_at_point**\ (\ point\: :ref:`Vector2<class_Vector2>`\ ) |const| :ref:`🔗<class_TabContainer_method_get_tab_idx_at_point>`
- Returns the index of the tab at local coordinates ``point``. Returns ``-1`` if the point is outside the control boundaries or if there's no tab at the queried position.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_get_tab_idx_from_control:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_tab_idx_from_control**\ (\ control\: :ref:`Control<class_Control>`\ ) |const| :ref:`🔗<class_TabContainer_method_get_tab_idx_from_control>`
- Returns the index of the tab tied to the given ``control``. The control must be a child of the **TabContainer**.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_get_tab_metadata:
- .. rst-class:: classref-method
- :ref:`Variant<class_Variant>` **get_tab_metadata**\ (\ tab_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_TabContainer_method_get_tab_metadata>`
- Returns the metadata value set to the tab at index ``tab_idx`` using :ref:`set_tab_metadata<class_TabContainer_method_set_tab_metadata>`. If no metadata was previously set, returns ``null`` by default.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_get_tab_title:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **get_tab_title**\ (\ tab_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_TabContainer_method_get_tab_title>`
- 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 :ref:`set_tab_title<class_TabContainer_method_set_tab_title>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_get_tab_tooltip:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **get_tab_tooltip**\ (\ tab_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_TabContainer_method_get_tab_tooltip>`
- Returns the tooltip text of the tab at index ``tab_idx``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_is_tab_disabled:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_tab_disabled**\ (\ tab_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_TabContainer_method_is_tab_disabled>`
- Returns ``true`` if the tab at index ``tab_idx`` is disabled.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_is_tab_hidden:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_tab_hidden**\ (\ tab_idx\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_TabContainer_method_is_tab_hidden>`
- Returns ``true`` if the tab at index ``tab_idx`` is hidden.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_select_next_available:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **select_next_available**\ (\ ) :ref:`🔗<class_TabContainer_method_select_next_available>`
- Selects the first available tab with greater index than the currently selected. Returns ``true`` if tab selection changed.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_select_previous_available:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **select_previous_available**\ (\ ) :ref:`🔗<class_TabContainer_method_select_previous_available>`
- Selects the first available tab with lower index than the currently selected. Returns ``true`` if tab selection changed.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_set_popup:
- .. rst-class:: classref-method
- |void| **set_popup**\ (\ popup\: :ref:`Node<class_Node>`\ ) :ref:`🔗<class_TabContainer_method_set_popup>`
- If set on a :ref:`Popup<class_Popup>` node instance, a popup menu icon appears in the top-right corner of the **TabContainer** (setting it to ``null`` will make it go away). Clicking it will expand the :ref:`Popup<class_Popup>` node.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_set_tab_button_icon:
- .. rst-class:: classref-method
- |void| **set_tab_button_icon**\ (\ tab_idx\: :ref:`int<class_int>`, icon\: :ref:`Texture2D<class_Texture2D>`\ ) :ref:`🔗<class_TabContainer_method_set_tab_button_icon>`
- Sets the button icon from the tab at index ``tab_idx``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_set_tab_disabled:
- .. rst-class:: classref-method
- |void| **set_tab_disabled**\ (\ tab_idx\: :ref:`int<class_int>`, disabled\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_TabContainer_method_set_tab_disabled>`
- If ``disabled`` is ``true``, disables the tab at index ``tab_idx``, making it non-interactable.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_set_tab_hidden:
- .. rst-class:: classref-method
- |void| **set_tab_hidden**\ (\ tab_idx\: :ref:`int<class_int>`, hidden\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_TabContainer_method_set_tab_hidden>`
- If ``hidden`` is ``true``, hides the tab at index ``tab_idx``, making it disappear from the tab area.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_set_tab_icon:
- .. rst-class:: classref-method
- |void| **set_tab_icon**\ (\ tab_idx\: :ref:`int<class_int>`, icon\: :ref:`Texture2D<class_Texture2D>`\ ) :ref:`🔗<class_TabContainer_method_set_tab_icon>`
- Sets an icon for the tab at index ``tab_idx``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_set_tab_icon_max_width:
- .. rst-class:: classref-method
- |void| **set_tab_icon_max_width**\ (\ tab_idx\: :ref:`int<class_int>`, width\: :ref:`int<class_int>`\ ) :ref:`🔗<class_TabContainer_method_set_tab_icon_max_width>`
- Sets the maximum allowed width of the icon for the tab at index ``tab_idx``. This limit is applied on top of the default size of the icon and on top of :ref:`icon_max_width<class_TabContainer_theme_constant_icon_max_width>`. The height is adjusted according to the icon's ratio.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_set_tab_metadata:
- .. rst-class:: classref-method
- |void| **set_tab_metadata**\ (\ tab_idx\: :ref:`int<class_int>`, metadata\: :ref:`Variant<class_Variant>`\ ) :ref:`🔗<class_TabContainer_method_set_tab_metadata>`
- Sets the metadata value for the tab at index ``tab_idx``, which can be retrieved later using :ref:`get_tab_metadata<class_TabContainer_method_get_tab_metadata>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_set_tab_title:
- .. rst-class:: classref-method
- |void| **set_tab_title**\ (\ tab_idx\: :ref:`int<class_int>`, title\: :ref:`String<class_String>`\ ) :ref:`🔗<class_TabContainer_method_set_tab_title>`
- Sets a custom title for the tab at index ``tab_idx`` (tab titles default to the name of the indexed child node). Set it back to the child's name to make the tab default to it again.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_method_set_tab_tooltip:
- .. rst-class:: classref-method
- |void| **set_tab_tooltip**\ (\ tab_idx\: :ref:`int<class_int>`, tooltip\: :ref:`String<class_String>`\ ) :ref:`🔗<class_TabContainer_method_set_tab_tooltip>`
- Sets a custom tooltip text for tab at index ``tab_idx``.
- \ **Note:** By default, if the ``tooltip`` is empty and the tab text is truncated (not all characters fit into the tab), the title will be displayed as a tooltip. To hide the tooltip, assign ``" "`` as the ``tooltip`` text.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Theme Property Descriptions
- ---------------------------
- .. _class_TabContainer_theme_color_drop_mark_color:
- .. rst-class:: classref-themeproperty
- :ref:`Color<class_Color>` **drop_mark_color** = ``Color(1, 1, 1, 1)`` :ref:`🔗<class_TabContainer_theme_color_drop_mark_color>`
- Modulation color for the :ref:`drop_mark<class_TabContainer_theme_icon_drop_mark>` icon.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_color_font_disabled_color:
- .. rst-class:: classref-themeproperty
- :ref:`Color<class_Color>` **font_disabled_color** = ``Color(0.875, 0.875, 0.875, 0.5)`` :ref:`🔗<class_TabContainer_theme_color_font_disabled_color>`
- Font color of disabled tabs.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_color_font_hovered_color:
- .. rst-class:: classref-themeproperty
- :ref:`Color<class_Color>` **font_hovered_color** = ``Color(0.95, 0.95, 0.95, 1)`` :ref:`🔗<class_TabContainer_theme_color_font_hovered_color>`
- Font color of the currently hovered tab.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_color_font_outline_color:
- .. rst-class:: classref-themeproperty
- :ref:`Color<class_Color>` **font_outline_color** = ``Color(0, 0, 0, 1)`` :ref:`🔗<class_TabContainer_theme_color_font_outline_color>`
- The tint of text outline of the tab name.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_color_font_selected_color:
- .. rst-class:: classref-themeproperty
- :ref:`Color<class_Color>` **font_selected_color** = ``Color(0.95, 0.95, 0.95, 1)`` :ref:`🔗<class_TabContainer_theme_color_font_selected_color>`
- Font color of the currently selected tab.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_color_font_unselected_color:
- .. rst-class:: classref-themeproperty
- :ref:`Color<class_Color>` **font_unselected_color** = ``Color(0.7, 0.7, 0.7, 1)`` :ref:`🔗<class_TabContainer_theme_color_font_unselected_color>`
- Font color of the other, unselected tabs.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_constant_icon_max_width:
- .. rst-class:: classref-themeproperty
- :ref:`int<class_int>` **icon_max_width** = ``0`` :ref:`🔗<class_TabContainer_theme_constant_icon_max_width>`
- The maximum allowed width of the tab's icon. This limit is applied on top of the default size of the icon, but before the value set with :ref:`TabBar.set_tab_icon_max_width<class_TabBar_method_set_tab_icon_max_width>`. The height is adjusted according to the icon's ratio.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_constant_icon_separation:
- .. rst-class:: classref-themeproperty
- :ref:`int<class_int>` **icon_separation** = ``4`` :ref:`🔗<class_TabContainer_theme_constant_icon_separation>`
- Space between tab's name and its icon.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_constant_outline_size:
- .. rst-class:: classref-themeproperty
- :ref:`int<class_int>` **outline_size** = ``0`` :ref:`🔗<class_TabContainer_theme_constant_outline_size>`
- The size of the tab text outline.
- \ **Note:** If using a font with :ref:`FontFile.multichannel_signed_distance_field<class_FontFile_property_multichannel_signed_distance_field>` enabled, its :ref:`FontFile.msdf_pixel_range<class_FontFile_property_msdf_pixel_range>` must be set to at least *twice* the value of :ref:`outline_size<class_TabContainer_theme_constant_outline_size>` for outline rendering to look correct. Otherwise, the outline may appear to be cut off earlier than intended.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_constant_side_margin:
- .. rst-class:: classref-themeproperty
- :ref:`int<class_int>` **side_margin** = ``8`` :ref:`🔗<class_TabContainer_theme_constant_side_margin>`
- The space at the left or right edges of the tab bar, accordingly with the current :ref:`tab_alignment<class_TabContainer_property_tab_alignment>`.
- The margin is ignored with :ref:`TabBar.ALIGNMENT_RIGHT<class_TabBar_constant_ALIGNMENT_RIGHT>` if the tabs are clipped (see :ref:`clip_tabs<class_TabContainer_property_clip_tabs>`) or a popup has been set (see :ref:`set_popup<class_TabContainer_method_set_popup>`). The margin is always ignored with :ref:`TabBar.ALIGNMENT_CENTER<class_TabBar_constant_ALIGNMENT_CENTER>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_font_font:
- .. rst-class:: classref-themeproperty
- :ref:`Font<class_Font>` **font** :ref:`🔗<class_TabContainer_theme_font_font>`
- The font used to draw tab names.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_font_size_font_size:
- .. rst-class:: classref-themeproperty
- :ref:`int<class_int>` **font_size** :ref:`🔗<class_TabContainer_theme_font_size_font_size>`
- Font size of the tab names.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_icon_decrement:
- .. rst-class:: classref-themeproperty
- :ref:`Texture2D<class_Texture2D>` **decrement** :ref:`🔗<class_TabContainer_theme_icon_decrement>`
- Icon for the left arrow button that appears when there are too many tabs to fit in the container width. When the button is disabled (i.e. the first tab is visible), it appears semi-transparent.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_icon_decrement_highlight:
- .. rst-class:: classref-themeproperty
- :ref:`Texture2D<class_Texture2D>` **decrement_highlight** :ref:`🔗<class_TabContainer_theme_icon_decrement_highlight>`
- Icon for the left arrow button that appears when there are too many tabs to fit in the container width. Used when the button is being hovered with the cursor.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_icon_drop_mark:
- .. rst-class:: classref-themeproperty
- :ref:`Texture2D<class_Texture2D>` **drop_mark** :ref:`🔗<class_TabContainer_theme_icon_drop_mark>`
- Icon shown to indicate where a dragged tab is gonna be dropped (see :ref:`drag_to_rearrange_enabled<class_TabContainer_property_drag_to_rearrange_enabled>`).
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_icon_increment:
- .. rst-class:: classref-themeproperty
- :ref:`Texture2D<class_Texture2D>` **increment** :ref:`🔗<class_TabContainer_theme_icon_increment>`
- Icon for the right arrow button that appears when there are too many tabs to fit in the container width. When the button is disabled (i.e. the last tab is visible) it appears semi-transparent.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_icon_increment_highlight:
- .. rst-class:: classref-themeproperty
- :ref:`Texture2D<class_Texture2D>` **increment_highlight** :ref:`🔗<class_TabContainer_theme_icon_increment_highlight>`
- Icon for the right arrow button that appears when there are too many tabs to fit in the container width. Used when the button is being hovered with the cursor.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_icon_menu:
- .. rst-class:: classref-themeproperty
- :ref:`Texture2D<class_Texture2D>` **menu** :ref:`🔗<class_TabContainer_theme_icon_menu>`
- The icon for the menu button (see :ref:`set_popup<class_TabContainer_method_set_popup>`).
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_icon_menu_highlight:
- .. rst-class:: classref-themeproperty
- :ref:`Texture2D<class_Texture2D>` **menu_highlight** :ref:`🔗<class_TabContainer_theme_icon_menu_highlight>`
- The icon for the menu button (see :ref:`set_popup<class_TabContainer_method_set_popup>`) when it's being hovered with the cursor.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_style_panel:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **panel** :ref:`🔗<class_TabContainer_theme_style_panel>`
- The style for the background fill.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_style_tab_disabled:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **tab_disabled** :ref:`🔗<class_TabContainer_theme_style_tab_disabled>`
- The style of disabled tabs.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_style_tab_focus:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **tab_focus** :ref:`🔗<class_TabContainer_theme_style_tab_focus>`
- :ref:`StyleBox<class_StyleBox>` used when the :ref:`TabBar<class_TabBar>` is focused. The :ref:`tab_focus<class_TabContainer_theme_style_tab_focus>` :ref:`StyleBox<class_StyleBox>` is displayed *over* the base :ref:`StyleBox<class_StyleBox>` of the selected tab, so a partially transparent :ref:`StyleBox<class_StyleBox>` should be used to ensure the base :ref:`StyleBox<class_StyleBox>` remains visible. A :ref:`StyleBox<class_StyleBox>` that represents an outline or an underline works well for this purpose. To disable the focus visual effect, assign a :ref:`StyleBoxEmpty<class_StyleBoxEmpty>` resource. Note that disabling the focus visual effect will harm keyboard/controller navigation usability, so this is not recommended for accessibility reasons.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_style_tab_hovered:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **tab_hovered** :ref:`🔗<class_TabContainer_theme_style_tab_hovered>`
- The style of the currently hovered tab.
- \ **Note:** This style will be drawn with the same width as :ref:`tab_unselected<class_TabContainer_theme_style_tab_unselected>` at minimum.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_style_tab_selected:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **tab_selected** :ref:`🔗<class_TabContainer_theme_style_tab_selected>`
- The style of the currently selected tab.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_style_tab_unselected:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **tab_unselected** :ref:`🔗<class_TabContainer_theme_style_tab_unselected>`
- The style of the other, unselected tabs.
- .. rst-class:: classref-item-separator
- ----
- .. _class_TabContainer_theme_style_tabbar_background:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **tabbar_background** :ref:`🔗<class_TabContainer_theme_style_tabbar_background>`
- The style for the background fill of the :ref:`TabBar<class_TabBar>` area.
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
- .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
- .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
- .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
- .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
- .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
- .. |void| replace:: :abbr:`void (No return value.)`
|