class_splitcontainer.rst 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584
  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/SplitContainer.xml.
  6. .. _class_SplitContainer:
  7. SplitContainer
  8. ==============
  9. **Inherits:** :ref:`Container<class_Container>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`HSplitContainer<class_HSplitContainer>`, :ref:`VSplitContainer<class_VSplitContainer>`
  11. A container that splits two child controls horizontally or vertically and provides a grabber for adjusting the split ratio.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. A container that accepts only two child controls, then arranges them horizontally or vertically and creates a divisor between them. The divisor can be dragged around to change the size relation between the child controls.
  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:`collapsed<class_SplitContainer_property_collapsed>` | ``false`` |
  27. +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-----------+
  28. | :ref:`bool<class_bool>` | :ref:`drag_area_highlight_in_editor<class_SplitContainer_property_drag_area_highlight_in_editor>` | ``false`` |
  29. +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-----------+
  30. | :ref:`int<class_int>` | :ref:`drag_area_margin_begin<class_SplitContainer_property_drag_area_margin_begin>` | ``0`` |
  31. +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-----------+
  32. | :ref:`int<class_int>` | :ref:`drag_area_margin_end<class_SplitContainer_property_drag_area_margin_end>` | ``0`` |
  33. +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-----------+
  34. | :ref:`int<class_int>` | :ref:`drag_area_offset<class_SplitContainer_property_drag_area_offset>` | ``0`` |
  35. +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-----------+
  36. | :ref:`DraggerVisibility<enum_SplitContainer_DraggerVisibility>` | :ref:`dragger_visibility<class_SplitContainer_property_dragger_visibility>` | ``0`` |
  37. +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-----------+
  38. | :ref:`bool<class_bool>` | :ref:`dragging_enabled<class_SplitContainer_property_dragging_enabled>` | ``true`` |
  39. +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-----------+
  40. | :ref:`int<class_int>` | :ref:`split_offset<class_SplitContainer_property_split_offset>` | ``0`` |
  41. +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-----------+
  42. | :ref:`bool<class_bool>` | :ref:`touch_dragger_enabled<class_SplitContainer_property_touch_dragger_enabled>` | ``false`` |
  43. +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-----------+
  44. | :ref:`bool<class_bool>` | :ref:`vertical<class_SplitContainer_property_vertical>` | ``false`` |
  45. +-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------+-----------+
  46. .. rst-class:: classref-reftable-group
  47. Methods
  48. -------
  49. .. table::
  50. :widths: auto
  51. +-------------------------------+---------------------------------------------------------------------------------------+
  52. | |void| | :ref:`clamp_split_offset<class_SplitContainer_method_clamp_split_offset>`\ (\ ) |
  53. +-------------------------------+---------------------------------------------------------------------------------------+
  54. | :ref:`Control<class_Control>` | :ref:`get_drag_area_control<class_SplitContainer_method_get_drag_area_control>`\ (\ ) |
  55. +-------------------------------+---------------------------------------------------------------------------------------+
  56. .. rst-class:: classref-reftable-group
  57. Theme Properties
  58. ----------------
  59. .. table::
  60. :widths: auto
  61. +-----------------------------------+--------------------------------------------------------------------------------------------------+-------------------------+
  62. | :ref:`Color<class_Color>` | :ref:`touch_dragger_color<class_SplitContainer_theme_color_touch_dragger_color>` | ``Color(1, 1, 1, 0.3)`` |
  63. +-----------------------------------+--------------------------------------------------------------------------------------------------+-------------------------+
  64. | :ref:`Color<class_Color>` | :ref:`touch_dragger_hover_color<class_SplitContainer_theme_color_touch_dragger_hover_color>` | ``Color(1, 1, 1, 0.6)`` |
  65. +-----------------------------------+--------------------------------------------------------------------------------------------------+-------------------------+
  66. | :ref:`Color<class_Color>` | :ref:`touch_dragger_pressed_color<class_SplitContainer_theme_color_touch_dragger_pressed_color>` | ``Color(1, 1, 1, 1)`` |
  67. +-----------------------------------+--------------------------------------------------------------------------------------------------+-------------------------+
  68. | :ref:`int<class_int>` | :ref:`autohide<class_SplitContainer_theme_constant_autohide>` | ``1`` |
  69. +-----------------------------------+--------------------------------------------------------------------------------------------------+-------------------------+
  70. | :ref:`int<class_int>` | :ref:`minimum_grab_thickness<class_SplitContainer_theme_constant_minimum_grab_thickness>` | ``6`` |
  71. +-----------------------------------+--------------------------------------------------------------------------------------------------+-------------------------+
  72. | :ref:`int<class_int>` | :ref:`separation<class_SplitContainer_theme_constant_separation>` | ``12`` |
  73. +-----------------------------------+--------------------------------------------------------------------------------------------------+-------------------------+
  74. | :ref:`Texture2D<class_Texture2D>` | :ref:`grabber<class_SplitContainer_theme_icon_grabber>` | |
  75. +-----------------------------------+--------------------------------------------------------------------------------------------------+-------------------------+
  76. | :ref:`Texture2D<class_Texture2D>` | :ref:`h_grabber<class_SplitContainer_theme_icon_h_grabber>` | |
  77. +-----------------------------------+--------------------------------------------------------------------------------------------------+-------------------------+
  78. | :ref:`Texture2D<class_Texture2D>` | :ref:`h_touch_dragger<class_SplitContainer_theme_icon_h_touch_dragger>` | |
  79. +-----------------------------------+--------------------------------------------------------------------------------------------------+-------------------------+
  80. | :ref:`Texture2D<class_Texture2D>` | :ref:`touch_dragger<class_SplitContainer_theme_icon_touch_dragger>` | |
  81. +-----------------------------------+--------------------------------------------------------------------------------------------------+-------------------------+
  82. | :ref:`Texture2D<class_Texture2D>` | :ref:`v_grabber<class_SplitContainer_theme_icon_v_grabber>` | |
  83. +-----------------------------------+--------------------------------------------------------------------------------------------------+-------------------------+
  84. | :ref:`Texture2D<class_Texture2D>` | :ref:`v_touch_dragger<class_SplitContainer_theme_icon_v_touch_dragger>` | |
  85. +-----------------------------------+--------------------------------------------------------------------------------------------------+-------------------------+
  86. | :ref:`StyleBox<class_StyleBox>` | :ref:`split_bar_background<class_SplitContainer_theme_style_split_bar_background>` | |
  87. +-----------------------------------+--------------------------------------------------------------------------------------------------+-------------------------+
  88. .. rst-class:: classref-section-separator
  89. ----
  90. .. rst-class:: classref-descriptions-group
  91. Signals
  92. -------
  93. .. _class_SplitContainer_signal_drag_ended:
  94. .. rst-class:: classref-signal
  95. **drag_ended**\ (\ ) :ref:`🔗<class_SplitContainer_signal_drag_ended>`
  96. Emitted when the user ends dragging.
  97. .. rst-class:: classref-item-separator
  98. ----
  99. .. _class_SplitContainer_signal_drag_started:
  100. .. rst-class:: classref-signal
  101. **drag_started**\ (\ ) :ref:`🔗<class_SplitContainer_signal_drag_started>`
  102. Emitted when the user starts dragging.
  103. .. rst-class:: classref-item-separator
  104. ----
  105. .. _class_SplitContainer_signal_dragged:
  106. .. rst-class:: classref-signal
  107. **dragged**\ (\ offset\: :ref:`int<class_int>`\ ) :ref:`🔗<class_SplitContainer_signal_dragged>`
  108. Emitted when the dragger is dragged by user.
  109. .. rst-class:: classref-section-separator
  110. ----
  111. .. rst-class:: classref-descriptions-group
  112. Enumerations
  113. ------------
  114. .. _enum_SplitContainer_DraggerVisibility:
  115. .. rst-class:: classref-enumeration
  116. enum **DraggerVisibility**: :ref:`🔗<enum_SplitContainer_DraggerVisibility>`
  117. .. _class_SplitContainer_constant_DRAGGER_VISIBLE:
  118. .. rst-class:: classref-enumeration-constant
  119. :ref:`DraggerVisibility<enum_SplitContainer_DraggerVisibility>` **DRAGGER_VISIBLE** = ``0``
  120. The split dragger icon is always visible when :ref:`autohide<class_SplitContainer_theme_constant_autohide>` is ``false``, otherwise visible only when the cursor hovers it.
  121. The size of the grabber icon determines the minimum :ref:`separation<class_SplitContainer_theme_constant_separation>`.
  122. The dragger icon is automatically hidden if the length of the grabber icon is longer than the split bar.
  123. .. _class_SplitContainer_constant_DRAGGER_HIDDEN:
  124. .. rst-class:: classref-enumeration-constant
  125. :ref:`DraggerVisibility<enum_SplitContainer_DraggerVisibility>` **DRAGGER_HIDDEN** = ``1``
  126. The split dragger icon is never visible regardless of the value of :ref:`autohide<class_SplitContainer_theme_constant_autohide>`.
  127. The size of the grabber icon determines the minimum :ref:`separation<class_SplitContainer_theme_constant_separation>`.
  128. .. _class_SplitContainer_constant_DRAGGER_HIDDEN_COLLAPSED:
  129. .. rst-class:: classref-enumeration-constant
  130. :ref:`DraggerVisibility<enum_SplitContainer_DraggerVisibility>` **DRAGGER_HIDDEN_COLLAPSED** = ``2``
  131. The split dragger icon is not visible, and the split bar is collapsed to zero thickness.
  132. .. rst-class:: classref-section-separator
  133. ----
  134. .. rst-class:: classref-descriptions-group
  135. Property Descriptions
  136. ---------------------
  137. .. _class_SplitContainer_property_collapsed:
  138. .. rst-class:: classref-property
  139. :ref:`bool<class_bool>` **collapsed** = ``false`` :ref:`🔗<class_SplitContainer_property_collapsed>`
  140. .. rst-class:: classref-property-setget
  141. - |void| **set_collapsed**\ (\ value\: :ref:`bool<class_bool>`\ )
  142. - :ref:`bool<class_bool>` **is_collapsed**\ (\ )
  143. If ``true``, the dragger will be disabled and the children will be sized as if the :ref:`split_offset<class_SplitContainer_property_split_offset>` was ``0``.
  144. .. rst-class:: classref-item-separator
  145. ----
  146. .. _class_SplitContainer_property_drag_area_highlight_in_editor:
  147. .. rst-class:: classref-property
  148. :ref:`bool<class_bool>` **drag_area_highlight_in_editor** = ``false`` :ref:`🔗<class_SplitContainer_property_drag_area_highlight_in_editor>`
  149. .. rst-class:: classref-property-setget
  150. - |void| **set_drag_area_highlight_in_editor**\ (\ value\: :ref:`bool<class_bool>`\ )
  151. - :ref:`bool<class_bool>` **is_drag_area_highlight_in_editor_enabled**\ (\ )
  152. Highlights the drag area :ref:`Rect2<class_Rect2>` so you can see where it is during development. The drag area is gold if :ref:`dragging_enabled<class_SplitContainer_property_dragging_enabled>` is ``true``, and red if ``false``.
  153. .. rst-class:: classref-item-separator
  154. ----
  155. .. _class_SplitContainer_property_drag_area_margin_begin:
  156. .. rst-class:: classref-property
  157. :ref:`int<class_int>` **drag_area_margin_begin** = ``0`` :ref:`🔗<class_SplitContainer_property_drag_area_margin_begin>`
  158. .. rst-class:: classref-property-setget
  159. - |void| **set_drag_area_margin_begin**\ (\ value\: :ref:`int<class_int>`\ )
  160. - :ref:`int<class_int>` **get_drag_area_margin_begin**\ (\ )
  161. Reduces the size of the drag area and split bar :ref:`split_bar_background<class_SplitContainer_theme_style_split_bar_background>` at the beginning of the container.
  162. .. rst-class:: classref-item-separator
  163. ----
  164. .. _class_SplitContainer_property_drag_area_margin_end:
  165. .. rst-class:: classref-property
  166. :ref:`int<class_int>` **drag_area_margin_end** = ``0`` :ref:`🔗<class_SplitContainer_property_drag_area_margin_end>`
  167. .. rst-class:: classref-property-setget
  168. - |void| **set_drag_area_margin_end**\ (\ value\: :ref:`int<class_int>`\ )
  169. - :ref:`int<class_int>` **get_drag_area_margin_end**\ (\ )
  170. Reduces the size of the drag area and split bar :ref:`split_bar_background<class_SplitContainer_theme_style_split_bar_background>` at the end of the container.
  171. .. rst-class:: classref-item-separator
  172. ----
  173. .. _class_SplitContainer_property_drag_area_offset:
  174. .. rst-class:: classref-property
  175. :ref:`int<class_int>` **drag_area_offset** = ``0`` :ref:`🔗<class_SplitContainer_property_drag_area_offset>`
  176. .. rst-class:: classref-property-setget
  177. - |void| **set_drag_area_offset**\ (\ value\: :ref:`int<class_int>`\ )
  178. - :ref:`int<class_int>` **get_drag_area_offset**\ (\ )
  179. Shifts the drag area in the axis of the container to prevent the drag area from overlapping the :ref:`ScrollBar<class_ScrollBar>` or other selectable :ref:`Control<class_Control>` of a child node.
  180. .. rst-class:: classref-item-separator
  181. ----
  182. .. _class_SplitContainer_property_dragger_visibility:
  183. .. rst-class:: classref-property
  184. :ref:`DraggerVisibility<enum_SplitContainer_DraggerVisibility>` **dragger_visibility** = ``0`` :ref:`🔗<class_SplitContainer_property_dragger_visibility>`
  185. .. rst-class:: classref-property-setget
  186. - |void| **set_dragger_visibility**\ (\ value\: :ref:`DraggerVisibility<enum_SplitContainer_DraggerVisibility>`\ )
  187. - :ref:`DraggerVisibility<enum_SplitContainer_DraggerVisibility>` **get_dragger_visibility**\ (\ )
  188. Determines the dragger's visibility. This property does not determine whether dragging is enabled or not. Use :ref:`dragging_enabled<class_SplitContainer_property_dragging_enabled>` for that.
  189. .. rst-class:: classref-item-separator
  190. ----
  191. .. _class_SplitContainer_property_dragging_enabled:
  192. .. rst-class:: classref-property
  193. :ref:`bool<class_bool>` **dragging_enabled** = ``true`` :ref:`🔗<class_SplitContainer_property_dragging_enabled>`
  194. .. rst-class:: classref-property-setget
  195. - |void| **set_dragging_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
  196. - :ref:`bool<class_bool>` **is_dragging_enabled**\ (\ )
  197. Enables or disables split dragging.
  198. .. rst-class:: classref-item-separator
  199. ----
  200. .. _class_SplitContainer_property_split_offset:
  201. .. rst-class:: classref-property
  202. :ref:`int<class_int>` **split_offset** = ``0`` :ref:`🔗<class_SplitContainer_property_split_offset>`
  203. .. rst-class:: classref-property-setget
  204. - |void| **set_split_offset**\ (\ value\: :ref:`int<class_int>`\ )
  205. - :ref:`int<class_int>` **get_split_offset**\ (\ )
  206. The initial offset of the splitting between the two :ref:`Control<class_Control>`\ s, with ``0`` being at the end of the first :ref:`Control<class_Control>`.
  207. .. rst-class:: classref-item-separator
  208. ----
  209. .. _class_SplitContainer_property_touch_dragger_enabled:
  210. .. rst-class:: classref-property
  211. :ref:`bool<class_bool>` **touch_dragger_enabled** = ``false`` :ref:`🔗<class_SplitContainer_property_touch_dragger_enabled>`
  212. .. rst-class:: classref-property-setget
  213. - |void| **set_touch_dragger_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
  214. - :ref:`bool<class_bool>` **is_touch_dragger_enabled**\ (\ )
  215. If ``true``, a touch-friendly drag handle will be enabled for better usability on smaller screens. Unlike the standard grabber, this drag handle overlaps the **SplitContainer**'s children and does not affect their minimum separation. The standard grabber will no longer be drawn when this option is enabled.
  216. .. rst-class:: classref-item-separator
  217. ----
  218. .. _class_SplitContainer_property_vertical:
  219. .. rst-class:: classref-property
  220. :ref:`bool<class_bool>` **vertical** = ``false`` :ref:`🔗<class_SplitContainer_property_vertical>`
  221. .. rst-class:: classref-property-setget
  222. - |void| **set_vertical**\ (\ value\: :ref:`bool<class_bool>`\ )
  223. - :ref:`bool<class_bool>` **is_vertical**\ (\ )
  224. If ``true``, the **SplitContainer** will arrange its children vertically, rather than horizontally.
  225. Can't be changed when using :ref:`HSplitContainer<class_HSplitContainer>` and :ref:`VSplitContainer<class_VSplitContainer>`.
  226. .. rst-class:: classref-section-separator
  227. ----
  228. .. rst-class:: classref-descriptions-group
  229. Method Descriptions
  230. -------------------
  231. .. _class_SplitContainer_method_clamp_split_offset:
  232. .. rst-class:: classref-method
  233. |void| **clamp_split_offset**\ (\ ) :ref:`🔗<class_SplitContainer_method_clamp_split_offset>`
  234. Clamps the :ref:`split_offset<class_SplitContainer_property_split_offset>` value to not go outside the currently possible minimal and maximum values.
  235. .. rst-class:: classref-item-separator
  236. ----
  237. .. _class_SplitContainer_method_get_drag_area_control:
  238. .. rst-class:: classref-method
  239. :ref:`Control<class_Control>` **get_drag_area_control**\ (\ ) :ref:`🔗<class_SplitContainer_method_get_drag_area_control>`
  240. Returns the drag area :ref:`Control<class_Control>`. For example, you can move a pre-configured button into the drag area :ref:`Control<class_Control>` so that it rides along with the split bar. Try setting the :ref:`Button<class_Button>` anchors to ``center`` prior to the ``reparent()`` call.
  241. ::
  242. $BarnacleButton.reparent($SplitContainer.get_drag_area_control())
  243. \ **Note:** The drag area :ref:`Control<class_Control>` is drawn over the **SplitContainer**'s children, so :ref:`CanvasItem<class_CanvasItem>` draw objects called from the :ref:`Control<class_Control>` and children added to the :ref:`Control<class_Control>` will also appear over the **SplitContainer**'s children. Try setting :ref:`Control.mouse_filter<class_Control_property_mouse_filter>` of custom children to :ref:`Control.MOUSE_FILTER_IGNORE<class_Control_constant_MOUSE_FILTER_IGNORE>` to prevent blocking the mouse from dragging if desired.
  244. \ **Warning:** This is a required internal node, removing and freeing it may cause a crash.
  245. .. rst-class:: classref-section-separator
  246. ----
  247. .. rst-class:: classref-descriptions-group
  248. Theme Property Descriptions
  249. ---------------------------
  250. .. _class_SplitContainer_theme_color_touch_dragger_color:
  251. .. rst-class:: classref-themeproperty
  252. :ref:`Color<class_Color>` **touch_dragger_color** = ``Color(1, 1, 1, 0.3)`` :ref:`🔗<class_SplitContainer_theme_color_touch_dragger_color>`
  253. The color of the touch dragger.
  254. .. rst-class:: classref-item-separator
  255. ----
  256. .. _class_SplitContainer_theme_color_touch_dragger_hover_color:
  257. .. rst-class:: classref-themeproperty
  258. :ref:`Color<class_Color>` **touch_dragger_hover_color** = ``Color(1, 1, 1, 0.6)`` :ref:`🔗<class_SplitContainer_theme_color_touch_dragger_hover_color>`
  259. The color of the touch dragger when hovered.
  260. .. rst-class:: classref-item-separator
  261. ----
  262. .. _class_SplitContainer_theme_color_touch_dragger_pressed_color:
  263. .. rst-class:: classref-themeproperty
  264. :ref:`Color<class_Color>` **touch_dragger_pressed_color** = ``Color(1, 1, 1, 1)`` :ref:`🔗<class_SplitContainer_theme_color_touch_dragger_pressed_color>`
  265. The color of the touch dragger when pressed.
  266. .. rst-class:: classref-item-separator
  267. ----
  268. .. _class_SplitContainer_theme_constant_autohide:
  269. .. rst-class:: classref-themeproperty
  270. :ref:`int<class_int>` **autohide** = ``1`` :ref:`🔗<class_SplitContainer_theme_constant_autohide>`
  271. Boolean value. If ``1`` (``true``), the grabber will hide automatically when it isn't under the cursor. If ``0`` (``false``), it's always visible. The :ref:`dragger_visibility<class_SplitContainer_property_dragger_visibility>` must be :ref:`DRAGGER_VISIBLE<class_SplitContainer_constant_DRAGGER_VISIBLE>`.
  272. .. rst-class:: classref-item-separator
  273. ----
  274. .. _class_SplitContainer_theme_constant_minimum_grab_thickness:
  275. .. rst-class:: classref-themeproperty
  276. :ref:`int<class_int>` **minimum_grab_thickness** = ``6`` :ref:`🔗<class_SplitContainer_theme_constant_minimum_grab_thickness>`
  277. The minimum thickness of the area users can click on to grab the split bar. This ensures that the split bar can still be dragged if :ref:`separation<class_SplitContainer_theme_constant_separation>` or :ref:`h_grabber<class_SplitContainer_theme_icon_h_grabber>` / :ref:`v_grabber<class_SplitContainer_theme_icon_v_grabber>`'s size is too narrow to easily select.
  278. .. rst-class:: classref-item-separator
  279. ----
  280. .. _class_SplitContainer_theme_constant_separation:
  281. .. rst-class:: classref-themeproperty
  282. :ref:`int<class_int>` **separation** = ``12`` :ref:`🔗<class_SplitContainer_theme_constant_separation>`
  283. The split bar thickness, i.e., the gap between the two children of the container. This is overridden by the size of the grabber icon if :ref:`dragger_visibility<class_SplitContainer_property_dragger_visibility>` is set to :ref:`DRAGGER_VISIBLE<class_SplitContainer_constant_DRAGGER_VISIBLE>`, or :ref:`DRAGGER_HIDDEN<class_SplitContainer_constant_DRAGGER_HIDDEN>`, and :ref:`separation<class_SplitContainer_theme_constant_separation>` is smaller than the size of the grabber icon in the same axis.
  284. \ **Note:** To obtain :ref:`separation<class_SplitContainer_theme_constant_separation>` values less than the size of the grabber icon, for example a ``1 px`` hairline, set :ref:`h_grabber<class_SplitContainer_theme_icon_h_grabber>` or :ref:`v_grabber<class_SplitContainer_theme_icon_v_grabber>` to a new :ref:`ImageTexture<class_ImageTexture>`, which effectively sets the grabber icon size to ``0 px``.
  285. .. rst-class:: classref-item-separator
  286. ----
  287. .. _class_SplitContainer_theme_icon_grabber:
  288. .. rst-class:: classref-themeproperty
  289. :ref:`Texture2D<class_Texture2D>` **grabber** :ref:`🔗<class_SplitContainer_theme_icon_grabber>`
  290. The icon used for the grabber drawn in the middle area. This is only used in :ref:`HSplitContainer<class_HSplitContainer>` and :ref:`VSplitContainer<class_VSplitContainer>`. For **SplitContainer**, see :ref:`h_grabber<class_SplitContainer_theme_icon_h_grabber>` and :ref:`v_grabber<class_SplitContainer_theme_icon_v_grabber>` instead.
  291. .. rst-class:: classref-item-separator
  292. ----
  293. .. _class_SplitContainer_theme_icon_h_grabber:
  294. .. rst-class:: classref-themeproperty
  295. :ref:`Texture2D<class_Texture2D>` **h_grabber** :ref:`🔗<class_SplitContainer_theme_icon_h_grabber>`
  296. The icon used for the grabber drawn in the middle area when :ref:`vertical<class_SplitContainer_property_vertical>` is ``false``.
  297. .. rst-class:: classref-item-separator
  298. ----
  299. .. _class_SplitContainer_theme_icon_h_touch_dragger:
  300. .. rst-class:: classref-themeproperty
  301. :ref:`Texture2D<class_Texture2D>` **h_touch_dragger** :ref:`🔗<class_SplitContainer_theme_icon_h_touch_dragger>`
  302. The icon used for the drag handle when :ref:`touch_dragger_enabled<class_SplitContainer_property_touch_dragger_enabled>` is ``true`` and :ref:`vertical<class_SplitContainer_property_vertical>` is ``false``.
  303. .. rst-class:: classref-item-separator
  304. ----
  305. .. _class_SplitContainer_theme_icon_touch_dragger:
  306. .. rst-class:: classref-themeproperty
  307. :ref:`Texture2D<class_Texture2D>` **touch_dragger** :ref:`🔗<class_SplitContainer_theme_icon_touch_dragger>`
  308. The icon used for the drag handle when :ref:`touch_dragger_enabled<class_SplitContainer_property_touch_dragger_enabled>` is ``true``. This is only used in :ref:`HSplitContainer<class_HSplitContainer>` and :ref:`VSplitContainer<class_VSplitContainer>`. For **SplitContainer**, see :ref:`h_touch_dragger<class_SplitContainer_theme_icon_h_touch_dragger>` and :ref:`v_touch_dragger<class_SplitContainer_theme_icon_v_touch_dragger>` instead.
  309. .. rst-class:: classref-item-separator
  310. ----
  311. .. _class_SplitContainer_theme_icon_v_grabber:
  312. .. rst-class:: classref-themeproperty
  313. :ref:`Texture2D<class_Texture2D>` **v_grabber** :ref:`🔗<class_SplitContainer_theme_icon_v_grabber>`
  314. The icon used for the grabber drawn in the middle area when :ref:`vertical<class_SplitContainer_property_vertical>` is ``true``.
  315. .. rst-class:: classref-item-separator
  316. ----
  317. .. _class_SplitContainer_theme_icon_v_touch_dragger:
  318. .. rst-class:: classref-themeproperty
  319. :ref:`Texture2D<class_Texture2D>` **v_touch_dragger** :ref:`🔗<class_SplitContainer_theme_icon_v_touch_dragger>`
  320. The icon used for the drag handle when :ref:`touch_dragger_enabled<class_SplitContainer_property_touch_dragger_enabled>` is ``true`` and :ref:`vertical<class_SplitContainer_property_vertical>` is ``true``.
  321. .. rst-class:: classref-item-separator
  322. ----
  323. .. _class_SplitContainer_theme_style_split_bar_background:
  324. .. rst-class:: classref-themeproperty
  325. :ref:`StyleBox<class_StyleBox>` **split_bar_background** :ref:`🔗<class_SplitContainer_theme_style_split_bar_background>`
  326. Determines the background of the split bar if its thickness is greater than zero.
  327. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  328. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  329. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  330. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  331. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  332. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  333. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  334. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  335. .. |void| replace:: :abbr:`void (No return value.)`