class_tabcontainer.rst 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/TabContainer.xml.
  6. .. _class_TabContainer:
  7. TabContainer
  8. ============
  9. **Inherits:** :ref:`Container<class_Container>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. A container that creates a tab for each child control, displaying only the active tab's control.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. 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.
  15. \ **Note:** The drawing of the clickable tabs is handled by this node; :ref:`TabBar<class_TabBar>` is not needed.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - :doc:`Using Containers <../tutorials/ui/gui_containers>`
  20. .. rst-class:: classref-reftable-group
  21. Properties
  22. ----------
  23. .. table::
  24. :widths: auto
  25. +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
  26. | :ref:`bool<class_bool>` | :ref:`all_tabs_in_front<class_TabContainer_property_all_tabs_in_front>` | ``false`` |
  27. +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
  28. | :ref:`bool<class_bool>` | :ref:`clip_tabs<class_TabContainer_property_clip_tabs>` | ``true`` |
  29. +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
  30. | :ref:`int<class_int>` | :ref:`current_tab<class_TabContainer_property_current_tab>` | ``0`` |
  31. +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
  32. | :ref:`bool<class_bool>` | :ref:`drag_to_rearrange_enabled<class_TabContainer_property_drag_to_rearrange_enabled>` | ``false`` |
  33. +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
  34. | :ref:`AlignmentMode<enum_TabBar_AlignmentMode>` | :ref:`tab_alignment<class_TabContainer_property_tab_alignment>` | ``0`` |
  35. +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
  36. | :ref:`FocusMode<enum_Control_FocusMode>` | :ref:`tab_focus_mode<class_TabContainer_property_tab_focus_mode>` | ``2`` |
  37. +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
  38. | :ref:`TabPosition<enum_TabContainer_TabPosition>` | :ref:`tabs_position<class_TabContainer_property_tabs_position>` | ``0`` |
  39. +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
  40. | :ref:`int<class_int>` | :ref:`tabs_rearrange_group<class_TabContainer_property_tabs_rearrange_group>` | ``-1`` |
  41. +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
  42. | :ref:`bool<class_bool>` | :ref:`tabs_visible<class_TabContainer_property_tabs_visible>` | ``true`` |
  43. +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
  44. | :ref:`bool<class_bool>` | :ref:`use_hidden_tabs_for_min_size<class_TabContainer_property_use_hidden_tabs_for_min_size>` | ``false`` |
  45. +---------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------+
  46. .. rst-class:: classref-reftable-group
  47. Methods
  48. -------
  49. .. table::
  50. :widths: auto
  51. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  52. | :ref:`Control<class_Control>` | :ref:`get_current_tab_control<class_TabContainer_method_get_current_tab_control>` **(** **)** |const| |
  53. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  54. | :ref:`Popup<class_Popup>` | :ref:`get_popup<class_TabContainer_method_get_popup>` **(** **)** |const| |
  55. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  56. | :ref:`int<class_int>` | :ref:`get_previous_tab<class_TabContainer_method_get_previous_tab>` **(** **)** |const| |
  57. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  58. | :ref:`TabBar<class_TabBar>` | :ref:`get_tab_bar<class_TabContainer_method_get_tab_bar>` **(** **)** |const| |
  59. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  60. | :ref:`Texture2D<class_Texture2D>` | :ref:`get_tab_button_icon<class_TabContainer_method_get_tab_button_icon>` **(** :ref:`int<class_int>` tab_idx **)** |const| |
  61. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  62. | :ref:`Control<class_Control>` | :ref:`get_tab_control<class_TabContainer_method_get_tab_control>` **(** :ref:`int<class_int>` tab_idx **)** |const| |
  63. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  64. | :ref:`int<class_int>` | :ref:`get_tab_count<class_TabContainer_method_get_tab_count>` **(** **)** |const| |
  65. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  66. | :ref:`Texture2D<class_Texture2D>` | :ref:`get_tab_icon<class_TabContainer_method_get_tab_icon>` **(** :ref:`int<class_int>` tab_idx **)** |const| |
  67. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  68. | :ref:`int<class_int>` | :ref:`get_tab_idx_at_point<class_TabContainer_method_get_tab_idx_at_point>` **(** :ref:`Vector2<class_Vector2>` point **)** |const| |
  69. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  70. | :ref:`int<class_int>` | :ref:`get_tab_idx_from_control<class_TabContainer_method_get_tab_idx_from_control>` **(** :ref:`Control<class_Control>` control **)** |const| |
  71. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  72. | :ref:`Variant<class_Variant>` | :ref:`get_tab_metadata<class_TabContainer_method_get_tab_metadata>` **(** :ref:`int<class_int>` tab_idx **)** |const| |
  73. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  74. | :ref:`String<class_String>` | :ref:`get_tab_title<class_TabContainer_method_get_tab_title>` **(** :ref:`int<class_int>` tab_idx **)** |const| |
  75. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  76. | :ref:`bool<class_bool>` | :ref:`is_tab_disabled<class_TabContainer_method_is_tab_disabled>` **(** :ref:`int<class_int>` tab_idx **)** |const| |
  77. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  78. | :ref:`bool<class_bool>` | :ref:`is_tab_hidden<class_TabContainer_method_is_tab_hidden>` **(** :ref:`int<class_int>` tab_idx **)** |const| |
  79. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  80. | :ref:`bool<class_bool>` | :ref:`select_next_available<class_TabContainer_method_select_next_available>` **(** **)** |
  81. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  82. | :ref:`bool<class_bool>` | :ref:`select_previous_available<class_TabContainer_method_select_previous_available>` **(** **)** |
  83. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  84. | void | :ref:`set_popup<class_TabContainer_method_set_popup>` **(** :ref:`Node<class_Node>` popup **)** |
  85. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  86. | void | :ref:`set_tab_button_icon<class_TabContainer_method_set_tab_button_icon>` **(** :ref:`int<class_int>` tab_idx, :ref:`Texture2D<class_Texture2D>` icon **)** |
  87. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  88. | void | :ref:`set_tab_disabled<class_TabContainer_method_set_tab_disabled>` **(** :ref:`int<class_int>` tab_idx, :ref:`bool<class_bool>` disabled **)** |
  89. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  90. | void | :ref:`set_tab_hidden<class_TabContainer_method_set_tab_hidden>` **(** :ref:`int<class_int>` tab_idx, :ref:`bool<class_bool>` hidden **)** |
  91. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  92. | void | :ref:`set_tab_icon<class_TabContainer_method_set_tab_icon>` **(** :ref:`int<class_int>` tab_idx, :ref:`Texture2D<class_Texture2D>` icon **)** |
  93. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  94. | void | :ref:`set_tab_metadata<class_TabContainer_method_set_tab_metadata>` **(** :ref:`int<class_int>` tab_idx, :ref:`Variant<class_Variant>` metadata **)** |
  95. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  96. | void | :ref:`set_tab_title<class_TabContainer_method_set_tab_title>` **(** :ref:`int<class_int>` tab_idx, :ref:`String<class_String>` title **)** |
  97. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
  98. .. rst-class:: classref-reftable-group
  99. Theme Properties
  100. ----------------
  101. .. table::
  102. :widths: auto
  103. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  104. | :ref:`Color<class_Color>` | :ref:`drop_mark_color<class_TabContainer_theme_color_drop_mark_color>` | ``Color(1, 1, 1, 1)`` |
  105. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  106. | :ref:`Color<class_Color>` | :ref:`font_disabled_color<class_TabContainer_theme_color_font_disabled_color>` | ``Color(0.875, 0.875, 0.875, 0.5)`` |
  107. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  108. | :ref:`Color<class_Color>` | :ref:`font_hovered_color<class_TabContainer_theme_color_font_hovered_color>` | ``Color(0.95, 0.95, 0.95, 1)`` |
  109. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  110. | :ref:`Color<class_Color>` | :ref:`font_outline_color<class_TabContainer_theme_color_font_outline_color>` | ``Color(1, 1, 1, 1)`` |
  111. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  112. | :ref:`Color<class_Color>` | :ref:`font_selected_color<class_TabContainer_theme_color_font_selected_color>` | ``Color(0.95, 0.95, 0.95, 1)`` |
  113. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  114. | :ref:`Color<class_Color>` | :ref:`font_unselected_color<class_TabContainer_theme_color_font_unselected_color>` | ``Color(0.7, 0.7, 0.7, 1)`` |
  115. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  116. | :ref:`int<class_int>` | :ref:`icon_max_width<class_TabContainer_theme_constant_icon_max_width>` | ``0`` |
  117. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  118. | :ref:`int<class_int>` | :ref:`icon_separation<class_TabContainer_theme_constant_icon_separation>` | ``4`` |
  119. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  120. | :ref:`int<class_int>` | :ref:`outline_size<class_TabContainer_theme_constant_outline_size>` | ``0`` |
  121. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  122. | :ref:`int<class_int>` | :ref:`side_margin<class_TabContainer_theme_constant_side_margin>` | ``8`` |
  123. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  124. | :ref:`Font<class_Font>` | :ref:`font<class_TabContainer_theme_font_font>` | |
  125. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  126. | :ref:`int<class_int>` | :ref:`font_size<class_TabContainer_theme_font_size_font_size>` | |
  127. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  128. | :ref:`Texture2D<class_Texture2D>` | :ref:`decrement<class_TabContainer_theme_icon_decrement>` | |
  129. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  130. | :ref:`Texture2D<class_Texture2D>` | :ref:`decrement_highlight<class_TabContainer_theme_icon_decrement_highlight>` | |
  131. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  132. | :ref:`Texture2D<class_Texture2D>` | :ref:`drop_mark<class_TabContainer_theme_icon_drop_mark>` | |
  133. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  134. | :ref:`Texture2D<class_Texture2D>` | :ref:`increment<class_TabContainer_theme_icon_increment>` | |
  135. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  136. | :ref:`Texture2D<class_Texture2D>` | :ref:`increment_highlight<class_TabContainer_theme_icon_increment_highlight>` | |
  137. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  138. | :ref:`Texture2D<class_Texture2D>` | :ref:`menu<class_TabContainer_theme_icon_menu>` | |
  139. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  140. | :ref:`Texture2D<class_Texture2D>` | :ref:`menu_highlight<class_TabContainer_theme_icon_menu_highlight>` | |
  141. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  142. | :ref:`StyleBox<class_StyleBox>` | :ref:`panel<class_TabContainer_theme_style_panel>` | |
  143. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  144. | :ref:`StyleBox<class_StyleBox>` | :ref:`tab_disabled<class_TabContainer_theme_style_tab_disabled>` | |
  145. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  146. | :ref:`StyleBox<class_StyleBox>` | :ref:`tab_focus<class_TabContainer_theme_style_tab_focus>` | |
  147. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  148. | :ref:`StyleBox<class_StyleBox>` | :ref:`tab_hovered<class_TabContainer_theme_style_tab_hovered>` | |
  149. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  150. | :ref:`StyleBox<class_StyleBox>` | :ref:`tab_selected<class_TabContainer_theme_style_tab_selected>` | |
  151. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  152. | :ref:`StyleBox<class_StyleBox>` | :ref:`tab_unselected<class_TabContainer_theme_style_tab_unselected>` | |
  153. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  154. | :ref:`StyleBox<class_StyleBox>` | :ref:`tabbar_background<class_TabContainer_theme_style_tabbar_background>` | |
  155. +-----------------------------------+------------------------------------------------------------------------------------+-------------------------------------+
  156. .. rst-class:: classref-section-separator
  157. ----
  158. .. rst-class:: classref-descriptions-group
  159. Signals
  160. -------
  161. .. _class_TabContainer_signal_active_tab_rearranged:
  162. .. rst-class:: classref-signal
  163. **active_tab_rearranged** **(** :ref:`int<class_int>` idx_to **)**
  164. Emitted when the active tab is rearranged via mouse drag. See :ref:`drag_to_rearrange_enabled<class_TabContainer_property_drag_to_rearrange_enabled>`.
  165. .. rst-class:: classref-item-separator
  166. ----
  167. .. _class_TabContainer_signal_pre_popup_pressed:
  168. .. rst-class:: classref-signal
  169. **pre_popup_pressed** **(** **)**
  170. Emitted when the **TabContainer**'s :ref:`Popup<class_Popup>` button is clicked. See :ref:`set_popup<class_TabContainer_method_set_popup>` for details.
  171. .. rst-class:: classref-item-separator
  172. ----
  173. .. _class_TabContainer_signal_tab_button_pressed:
  174. .. rst-class:: classref-signal
  175. **tab_button_pressed** **(** :ref:`int<class_int>` tab **)**
  176. Emitted when the user clicks on the button icon on this tab.
  177. .. rst-class:: classref-item-separator
  178. ----
  179. .. _class_TabContainer_signal_tab_changed:
  180. .. rst-class:: classref-signal
  181. **tab_changed** **(** :ref:`int<class_int>` tab **)**
  182. Emitted when switching to another tab.
  183. .. rst-class:: classref-item-separator
  184. ----
  185. .. _class_TabContainer_signal_tab_clicked:
  186. .. rst-class:: classref-signal
  187. **tab_clicked** **(** :ref:`int<class_int>` tab **)**
  188. Emitted when a tab is clicked, even if it is the current tab.
  189. .. rst-class:: classref-item-separator
  190. ----
  191. .. _class_TabContainer_signal_tab_hovered:
  192. .. rst-class:: classref-signal
  193. **tab_hovered** **(** :ref:`int<class_int>` tab **)**
  194. Emitted when a tab is hovered by the mouse.
  195. .. rst-class:: classref-item-separator
  196. ----
  197. .. _class_TabContainer_signal_tab_selected:
  198. .. rst-class:: classref-signal
  199. **tab_selected** **(** :ref:`int<class_int>` tab **)**
  200. Emitted when a tab is selected via click, directional input, or script, even if it is the current tab.
  201. .. rst-class:: classref-section-separator
  202. ----
  203. .. rst-class:: classref-descriptions-group
  204. Enumerations
  205. ------------
  206. .. _enum_TabContainer_TabPosition:
  207. .. rst-class:: classref-enumeration
  208. enum **TabPosition**:
  209. .. _class_TabContainer_constant_POSITION_TOP:
  210. .. rst-class:: classref-enumeration-constant
  211. :ref:`TabPosition<enum_TabContainer_TabPosition>` **POSITION_TOP** = ``0``
  212. Places the tab bar at the top.
  213. .. _class_TabContainer_constant_POSITION_BOTTOM:
  214. .. rst-class:: classref-enumeration-constant
  215. :ref:`TabPosition<enum_TabContainer_TabPosition>` **POSITION_BOTTOM** = ``1``
  216. Places the tab bar at the bottom. The tab bar's :ref:`StyleBox<class_StyleBox>` will be flipped vertically.
  217. .. _class_TabContainer_constant_POSITION_MAX:
  218. .. rst-class:: classref-enumeration-constant
  219. :ref:`TabPosition<enum_TabContainer_TabPosition>` **POSITION_MAX** = ``2``
  220. Represents the size of the :ref:`TabPosition<enum_TabContainer_TabPosition>` enum.
  221. .. rst-class:: classref-section-separator
  222. ----
  223. .. rst-class:: classref-descriptions-group
  224. Property Descriptions
  225. ---------------------
  226. .. _class_TabContainer_property_all_tabs_in_front:
  227. .. rst-class:: classref-property
  228. :ref:`bool<class_bool>` **all_tabs_in_front** = ``false``
  229. .. rst-class:: classref-property-setget
  230. - void **set_all_tabs_in_front** **(** :ref:`bool<class_bool>` value **)**
  231. - :ref:`bool<class_bool>` **is_all_tabs_in_front** **(** **)**
  232. If ``true``, all tabs are drawn in front of the panel. If ``false``, inactive tabs are drawn behind the panel.
  233. .. rst-class:: classref-item-separator
  234. ----
  235. .. _class_TabContainer_property_clip_tabs:
  236. .. rst-class:: classref-property
  237. :ref:`bool<class_bool>` **clip_tabs** = ``true``
  238. .. rst-class:: classref-property-setget
  239. - void **set_clip_tabs** **(** :ref:`bool<class_bool>` value **)**
  240. - :ref:`bool<class_bool>` **get_clip_tabs** **(** **)**
  241. 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.
  242. .. rst-class:: classref-item-separator
  243. ----
  244. .. _class_TabContainer_property_current_tab:
  245. .. rst-class:: classref-property
  246. :ref:`int<class_int>` **current_tab** = ``0``
  247. .. rst-class:: classref-property-setget
  248. - void **set_current_tab** **(** :ref:`int<class_int>` value **)**
  249. - :ref:`int<class_int>` **get_current_tab** **(** **)**
  250. 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``.
  251. .. rst-class:: classref-item-separator
  252. ----
  253. .. _class_TabContainer_property_drag_to_rearrange_enabled:
  254. .. rst-class:: classref-property
  255. :ref:`bool<class_bool>` **drag_to_rearrange_enabled** = ``false``
  256. .. rst-class:: classref-property-setget
  257. - void **set_drag_to_rearrange_enabled** **(** :ref:`bool<class_bool>` value **)**
  258. - :ref:`bool<class_bool>` **get_drag_to_rearrange_enabled** **(** **)**
  259. If ``true``, tabs can be rearranged with mouse drag.
  260. .. rst-class:: classref-item-separator
  261. ----
  262. .. _class_TabContainer_property_tab_alignment:
  263. .. rst-class:: classref-property
  264. :ref:`AlignmentMode<enum_TabBar_AlignmentMode>` **tab_alignment** = ``0``
  265. .. rst-class:: classref-property-setget
  266. - void **set_tab_alignment** **(** :ref:`AlignmentMode<enum_TabBar_AlignmentMode>` value **)**
  267. - :ref:`AlignmentMode<enum_TabBar_AlignmentMode>` **get_tab_alignment** **(** **)**
  268. Sets the position at which tabs will be placed. See :ref:`AlignmentMode<enum_TabBar_AlignmentMode>` for details.
  269. .. rst-class:: classref-item-separator
  270. ----
  271. .. _class_TabContainer_property_tab_focus_mode:
  272. .. rst-class:: classref-property
  273. :ref:`FocusMode<enum_Control_FocusMode>` **tab_focus_mode** = ``2``
  274. .. rst-class:: classref-property-setget
  275. - void **set_tab_focus_mode** **(** :ref:`FocusMode<enum_Control_FocusMode>` value **)**
  276. - :ref:`FocusMode<enum_Control_FocusMode>` **get_tab_focus_mode** **(** **)**
  277. The focus access mode for the internal :ref:`TabBar<class_TabBar>` node.
  278. .. rst-class:: classref-item-separator
  279. ----
  280. .. _class_TabContainer_property_tabs_position:
  281. .. rst-class:: classref-property
  282. :ref:`TabPosition<enum_TabContainer_TabPosition>` **tabs_position** = ``0``
  283. .. rst-class:: classref-property-setget
  284. - void **set_tabs_position** **(** :ref:`TabPosition<enum_TabContainer_TabPosition>` value **)**
  285. - :ref:`TabPosition<enum_TabContainer_TabPosition>` **get_tabs_position** **(** **)**
  286. Sets the position of the tab bar. See :ref:`TabPosition<enum_TabContainer_TabPosition>` for details.
  287. .. rst-class:: classref-item-separator
  288. ----
  289. .. _class_TabContainer_property_tabs_rearrange_group:
  290. .. rst-class:: classref-property
  291. :ref:`int<class_int>` **tabs_rearrange_group** = ``-1``
  292. .. rst-class:: classref-property-setget
  293. - void **set_tabs_rearrange_group** **(** :ref:`int<class_int>` value **)**
  294. - :ref:`int<class_int>` **get_tabs_rearrange_group** **(** **)**
  295. **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>`.
  296. Setting this to ``-1`` will disable rearranging between **TabContainer**\ s.
  297. .. rst-class:: classref-item-separator
  298. ----
  299. .. _class_TabContainer_property_tabs_visible:
  300. .. rst-class:: classref-property
  301. :ref:`bool<class_bool>` **tabs_visible** = ``true``
  302. .. rst-class:: classref-property-setget
  303. - void **set_tabs_visible** **(** :ref:`bool<class_bool>` value **)**
  304. - :ref:`bool<class_bool>` **are_tabs_visible** **(** **)**
  305. If ``true``, tabs are visible. If ``false``, tabs' content and titles are hidden.
  306. .. rst-class:: classref-item-separator
  307. ----
  308. .. _class_TabContainer_property_use_hidden_tabs_for_min_size:
  309. .. rst-class:: classref-property
  310. :ref:`bool<class_bool>` **use_hidden_tabs_for_min_size** = ``false``
  311. .. rst-class:: classref-property-setget
  312. - void **set_use_hidden_tabs_for_min_size** **(** :ref:`bool<class_bool>` value **)**
  313. - :ref:`bool<class_bool>` **get_use_hidden_tabs_for_min_size** **(** **)**
  314. If ``true``, children :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.
  315. .. rst-class:: classref-section-separator
  316. ----
  317. .. rst-class:: classref-descriptions-group
  318. Method Descriptions
  319. -------------------
  320. .. _class_TabContainer_method_get_current_tab_control:
  321. .. rst-class:: classref-method
  322. :ref:`Control<class_Control>` **get_current_tab_control** **(** **)** |const|
  323. Returns the child :ref:`Control<class_Control>` node located at the active tab index.
  324. .. rst-class:: classref-item-separator
  325. ----
  326. .. _class_TabContainer_method_get_popup:
  327. .. rst-class:: classref-method
  328. :ref:`Popup<class_Popup>` **get_popup** **(** **)** |const|
  329. Returns the :ref:`Popup<class_Popup>` node instance if one has been set already with :ref:`set_popup<class_TabContainer_method_set_popup>`.
  330. \ **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.
  331. .. rst-class:: classref-item-separator
  332. ----
  333. .. _class_TabContainer_method_get_previous_tab:
  334. .. rst-class:: classref-method
  335. :ref:`int<class_int>` **get_previous_tab** **(** **)** |const|
  336. Returns the previously active tab index.
  337. .. rst-class:: classref-item-separator
  338. ----
  339. .. _class_TabContainer_method_get_tab_bar:
  340. .. rst-class:: classref-method
  341. :ref:`TabBar<class_TabBar>` **get_tab_bar** **(** **)** |const|
  342. Returns the :ref:`TabBar<class_TabBar>` contained in this container.
  343. \ **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**.
  344. .. rst-class:: classref-item-separator
  345. ----
  346. .. _class_TabContainer_method_get_tab_button_icon:
  347. .. rst-class:: classref-method
  348. :ref:`Texture2D<class_Texture2D>` **get_tab_button_icon** **(** :ref:`int<class_int>` tab_idx **)** |const|
  349. Returns the button icon from the tab at index ``tab_idx``.
  350. .. rst-class:: classref-item-separator
  351. ----
  352. .. _class_TabContainer_method_get_tab_control:
  353. .. rst-class:: classref-method
  354. :ref:`Control<class_Control>` **get_tab_control** **(** :ref:`int<class_int>` tab_idx **)** |const|
  355. Returns the :ref:`Control<class_Control>` node from the tab at index ``tab_idx``.
  356. .. rst-class:: classref-item-separator
  357. ----
  358. .. _class_TabContainer_method_get_tab_count:
  359. .. rst-class:: classref-method
  360. :ref:`int<class_int>` **get_tab_count** **(** **)** |const|
  361. Returns the number of tabs.
  362. .. rst-class:: classref-item-separator
  363. ----
  364. .. _class_TabContainer_method_get_tab_icon:
  365. .. rst-class:: classref-method
  366. :ref:`Texture2D<class_Texture2D>` **get_tab_icon** **(** :ref:`int<class_int>` tab_idx **)** |const|
  367. Returns the :ref:`Texture2D<class_Texture2D>` for the tab at index ``tab_idx`` or ``null`` if the tab has no :ref:`Texture2D<class_Texture2D>`.
  368. .. rst-class:: classref-item-separator
  369. ----
  370. .. _class_TabContainer_method_get_tab_idx_at_point:
  371. .. rst-class:: classref-method
  372. :ref:`int<class_int>` **get_tab_idx_at_point** **(** :ref:`Vector2<class_Vector2>` point **)** |const|
  373. 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.
  374. .. rst-class:: classref-item-separator
  375. ----
  376. .. _class_TabContainer_method_get_tab_idx_from_control:
  377. .. rst-class:: classref-method
  378. :ref:`int<class_int>` **get_tab_idx_from_control** **(** :ref:`Control<class_Control>` control **)** |const|
  379. Returns the index of the tab tied to the given ``control``. The control must be a child of the **TabContainer**.
  380. .. rst-class:: classref-item-separator
  381. ----
  382. .. _class_TabContainer_method_get_tab_metadata:
  383. .. rst-class:: classref-method
  384. :ref:`Variant<class_Variant>` **get_tab_metadata** **(** :ref:`int<class_int>` tab_idx **)** |const|
  385. 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.
  386. .. rst-class:: classref-item-separator
  387. ----
  388. .. _class_TabContainer_method_get_tab_title:
  389. .. rst-class:: classref-method
  390. :ref:`String<class_String>` **get_tab_title** **(** :ref:`int<class_int>` tab_idx **)** |const|
  391. 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>`.
  392. .. rst-class:: classref-item-separator
  393. ----
  394. .. _class_TabContainer_method_is_tab_disabled:
  395. .. rst-class:: classref-method
  396. :ref:`bool<class_bool>` **is_tab_disabled** **(** :ref:`int<class_int>` tab_idx **)** |const|
  397. Returns ``true`` if the tab at index ``tab_idx`` is disabled.
  398. .. rst-class:: classref-item-separator
  399. ----
  400. .. _class_TabContainer_method_is_tab_hidden:
  401. .. rst-class:: classref-method
  402. :ref:`bool<class_bool>` **is_tab_hidden** **(** :ref:`int<class_int>` tab_idx **)** |const|
  403. Returns ``true`` if the tab at index ``tab_idx`` is hidden.
  404. .. rst-class:: classref-item-separator
  405. ----
  406. .. _class_TabContainer_method_select_next_available:
  407. .. rst-class:: classref-method
  408. :ref:`bool<class_bool>` **select_next_available** **(** **)**
  409. Selects the first available tab with greater index than the currently selected. Returns ``true`` if tab selection changed.
  410. .. rst-class:: classref-item-separator
  411. ----
  412. .. _class_TabContainer_method_select_previous_available:
  413. .. rst-class:: classref-method
  414. :ref:`bool<class_bool>` **select_previous_available** **(** **)**
  415. Selects the first available tab with lower index than the currently selected. Returns ``true`` if tab selection changed.
  416. .. rst-class:: classref-item-separator
  417. ----
  418. .. _class_TabContainer_method_set_popup:
  419. .. rst-class:: classref-method
  420. void **set_popup** **(** :ref:`Node<class_Node>` popup **)**
  421. 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.
  422. .. rst-class:: classref-item-separator
  423. ----
  424. .. _class_TabContainer_method_set_tab_button_icon:
  425. .. rst-class:: classref-method
  426. void **set_tab_button_icon** **(** :ref:`int<class_int>` tab_idx, :ref:`Texture2D<class_Texture2D>` icon **)**
  427. Sets the button icon from the tab at index ``tab_idx``.
  428. .. rst-class:: classref-item-separator
  429. ----
  430. .. _class_TabContainer_method_set_tab_disabled:
  431. .. rst-class:: classref-method
  432. void **set_tab_disabled** **(** :ref:`int<class_int>` tab_idx, :ref:`bool<class_bool>` disabled **)**
  433. If ``disabled`` is ``true``, disables the tab at index ``tab_idx``, making it non-interactable.
  434. .. rst-class:: classref-item-separator
  435. ----
  436. .. _class_TabContainer_method_set_tab_hidden:
  437. .. rst-class:: classref-method
  438. void **set_tab_hidden** **(** :ref:`int<class_int>` tab_idx, :ref:`bool<class_bool>` hidden **)**
  439. If ``hidden`` is ``true``, hides the tab at index ``tab_idx``, making it disappear from the tab area.
  440. .. rst-class:: classref-item-separator
  441. ----
  442. .. _class_TabContainer_method_set_tab_icon:
  443. .. rst-class:: classref-method
  444. void **set_tab_icon** **(** :ref:`int<class_int>` tab_idx, :ref:`Texture2D<class_Texture2D>` icon **)**
  445. Sets an icon for the tab at index ``tab_idx``.
  446. .. rst-class:: classref-item-separator
  447. ----
  448. .. _class_TabContainer_method_set_tab_metadata:
  449. .. rst-class:: classref-method
  450. void **set_tab_metadata** **(** :ref:`int<class_int>` tab_idx, :ref:`Variant<class_Variant>` metadata **)**
  451. 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>`.
  452. .. rst-class:: classref-item-separator
  453. ----
  454. .. _class_TabContainer_method_set_tab_title:
  455. .. rst-class:: classref-method
  456. void **set_tab_title** **(** :ref:`int<class_int>` tab_idx, :ref:`String<class_String>` title **)**
  457. 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.
  458. .. rst-class:: classref-section-separator
  459. ----
  460. .. rst-class:: classref-descriptions-group
  461. Theme Property Descriptions
  462. ---------------------------
  463. .. _class_TabContainer_theme_color_drop_mark_color:
  464. .. rst-class:: classref-themeproperty
  465. :ref:`Color<class_Color>` **drop_mark_color** = ``Color(1, 1, 1, 1)``
  466. Modulation color for the :ref:`drop_mark<class_TabContainer_theme_icon_drop_mark>` icon.
  467. .. rst-class:: classref-item-separator
  468. ----
  469. .. _class_TabContainer_theme_color_font_disabled_color:
  470. .. rst-class:: classref-themeproperty
  471. :ref:`Color<class_Color>` **font_disabled_color** = ``Color(0.875, 0.875, 0.875, 0.5)``
  472. Font color of disabled tabs.
  473. .. rst-class:: classref-item-separator
  474. ----
  475. .. _class_TabContainer_theme_color_font_hovered_color:
  476. .. rst-class:: classref-themeproperty
  477. :ref:`Color<class_Color>` **font_hovered_color** = ``Color(0.95, 0.95, 0.95, 1)``
  478. Font color of the currently hovered tab.
  479. .. rst-class:: classref-item-separator
  480. ----
  481. .. _class_TabContainer_theme_color_font_outline_color:
  482. .. rst-class:: classref-themeproperty
  483. :ref:`Color<class_Color>` **font_outline_color** = ``Color(1, 1, 1, 1)``
  484. The tint of text outline of the tab name.
  485. .. rst-class:: classref-item-separator
  486. ----
  487. .. _class_TabContainer_theme_color_font_selected_color:
  488. .. rst-class:: classref-themeproperty
  489. :ref:`Color<class_Color>` **font_selected_color** = ``Color(0.95, 0.95, 0.95, 1)``
  490. Font color of the currently selected tab.
  491. .. rst-class:: classref-item-separator
  492. ----
  493. .. _class_TabContainer_theme_color_font_unselected_color:
  494. .. rst-class:: classref-themeproperty
  495. :ref:`Color<class_Color>` **font_unselected_color** = ``Color(0.7, 0.7, 0.7, 1)``
  496. Font color of the other, unselected tabs.
  497. .. rst-class:: classref-item-separator
  498. ----
  499. .. _class_TabContainer_theme_constant_icon_max_width:
  500. .. rst-class:: classref-themeproperty
  501. :ref:`int<class_int>` **icon_max_width** = ``0``
  502. 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.
  503. .. rst-class:: classref-item-separator
  504. ----
  505. .. _class_TabContainer_theme_constant_icon_separation:
  506. .. rst-class:: classref-themeproperty
  507. :ref:`int<class_int>` **icon_separation** = ``4``
  508. Space between tab's name and its icon.
  509. .. rst-class:: classref-item-separator
  510. ----
  511. .. _class_TabContainer_theme_constant_outline_size:
  512. .. rst-class:: classref-themeproperty
  513. :ref:`int<class_int>` **outline_size** = ``0``
  514. The size of the tab text outline.
  515. \ **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.
  516. .. rst-class:: classref-item-separator
  517. ----
  518. .. _class_TabContainer_theme_constant_side_margin:
  519. .. rst-class:: classref-themeproperty
  520. :ref:`int<class_int>` **side_margin** = ``8``
  521. The space at the left or right edges of the tab bar, accordingly with the current :ref:`tab_alignment<class_TabContainer_property_tab_alignment>`.
  522. 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>`.
  523. .. rst-class:: classref-item-separator
  524. ----
  525. .. _class_TabContainer_theme_font_font:
  526. .. rst-class:: classref-themeproperty
  527. :ref:`Font<class_Font>` **font**
  528. The font used to draw tab names.
  529. .. rst-class:: classref-item-separator
  530. ----
  531. .. _class_TabContainer_theme_font_size_font_size:
  532. .. rst-class:: classref-themeproperty
  533. :ref:`int<class_int>` **font_size**
  534. Font size of the tab names.
  535. .. rst-class:: classref-item-separator
  536. ----
  537. .. _class_TabContainer_theme_icon_decrement:
  538. .. rst-class:: classref-themeproperty
  539. :ref:`Texture2D<class_Texture2D>` **decrement**
  540. 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.
  541. .. rst-class:: classref-item-separator
  542. ----
  543. .. _class_TabContainer_theme_icon_decrement_highlight:
  544. .. rst-class:: classref-themeproperty
  545. :ref:`Texture2D<class_Texture2D>` **decrement_highlight**
  546. 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.
  547. .. rst-class:: classref-item-separator
  548. ----
  549. .. _class_TabContainer_theme_icon_drop_mark:
  550. .. rst-class:: classref-themeproperty
  551. :ref:`Texture2D<class_Texture2D>` **drop_mark**
  552. 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>`).
  553. .. rst-class:: classref-item-separator
  554. ----
  555. .. _class_TabContainer_theme_icon_increment:
  556. .. rst-class:: classref-themeproperty
  557. :ref:`Texture2D<class_Texture2D>` **increment**
  558. 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.
  559. .. rst-class:: classref-item-separator
  560. ----
  561. .. _class_TabContainer_theme_icon_increment_highlight:
  562. .. rst-class:: classref-themeproperty
  563. :ref:`Texture2D<class_Texture2D>` **increment_highlight**
  564. 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.
  565. .. rst-class:: classref-item-separator
  566. ----
  567. .. _class_TabContainer_theme_icon_menu:
  568. .. rst-class:: classref-themeproperty
  569. :ref:`Texture2D<class_Texture2D>` **menu**
  570. The icon for the menu button (see :ref:`set_popup<class_TabContainer_method_set_popup>`).
  571. .. rst-class:: classref-item-separator
  572. ----
  573. .. _class_TabContainer_theme_icon_menu_highlight:
  574. .. rst-class:: classref-themeproperty
  575. :ref:`Texture2D<class_Texture2D>` **menu_highlight**
  576. The icon for the menu button (see :ref:`set_popup<class_TabContainer_method_set_popup>`) when it's being hovered with the cursor.
  577. .. rst-class:: classref-item-separator
  578. ----
  579. .. _class_TabContainer_theme_style_panel:
  580. .. rst-class:: classref-themeproperty
  581. :ref:`StyleBox<class_StyleBox>` **panel**
  582. The style for the background fill.
  583. .. rst-class:: classref-item-separator
  584. ----
  585. .. _class_TabContainer_theme_style_tab_disabled:
  586. .. rst-class:: classref-themeproperty
  587. :ref:`StyleBox<class_StyleBox>` **tab_disabled**
  588. The style of disabled tabs.
  589. .. rst-class:: classref-item-separator
  590. ----
  591. .. _class_TabContainer_theme_style_tab_focus:
  592. .. rst-class:: classref-themeproperty
  593. :ref:`StyleBox<class_StyleBox>` **tab_focus**
  594. :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.
  595. .. rst-class:: classref-item-separator
  596. ----
  597. .. _class_TabContainer_theme_style_tab_hovered:
  598. .. rst-class:: classref-themeproperty
  599. :ref:`StyleBox<class_StyleBox>` **tab_hovered**
  600. The style of the currently hovered tab.
  601. \ **Note:** This style will be drawn with the same width as :ref:`tab_unselected<class_TabContainer_theme_style_tab_unselected>` at minimum.
  602. .. rst-class:: classref-item-separator
  603. ----
  604. .. _class_TabContainer_theme_style_tab_selected:
  605. .. rst-class:: classref-themeproperty
  606. :ref:`StyleBox<class_StyleBox>` **tab_selected**
  607. The style of the currently selected tab.
  608. .. rst-class:: classref-item-separator
  609. ----
  610. .. _class_TabContainer_theme_style_tab_unselected:
  611. .. rst-class:: classref-themeproperty
  612. :ref:`StyleBox<class_StyleBox>` **tab_unselected**
  613. The style of the other, unselected tabs.
  614. .. rst-class:: classref-item-separator
  615. ----
  616. .. _class_TabContainer_theme_style_tabbar_background:
  617. .. rst-class:: classref-themeproperty
  618. :ref:`StyleBox<class_StyleBox>` **tabbar_background**
  619. The style for the background fill of the :ref:`TabBar<class_TabBar>` area.
  620. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  621. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  622. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  623. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  624. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  625. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  626. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`