class_vsplitcontainer.rst 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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/4.0/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.0/doc/classes/VSplitContainer.xml.
  6. .. _class_VSplitContainer:
  7. VSplitContainer
  8. ===============
  9. **Inherits:** :ref:`SplitContainer<class_SplitContainer>` **<** :ref:`Container<class_Container>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. A container that splits two child controls vertically and provides a grabber for adjusting the split ratio.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. A container that accepts only two child controls, then arranges them vertically and creates a divisor between them. The divisor can be dragged around to change the size relation between the child controls.
  15. .. rst-class:: classref-introduction-group
  16. Tutorials
  17. ---------
  18. - :doc:`Using Containers <../tutorials/ui/gui_containers>`
  19. .. rst-class:: classref-reftable-group
  20. Theme Properties
  21. ----------------
  22. .. table::
  23. :widths: auto
  24. +-----------------------------------+--------------------------------------------------------------------------------------------+--------+
  25. | :ref:`int<class_int>` | :ref:`autohide<class_VSplitContainer_theme_constant_autohide>` | ``1`` |
  26. +-----------------------------------+--------------------------------------------------------------------------------------------+--------+
  27. | :ref:`int<class_int>` | :ref:`minimum_grab_thickness<class_VSplitContainer_theme_constant_minimum_grab_thickness>` | ``6`` |
  28. +-----------------------------------+--------------------------------------------------------------------------------------------+--------+
  29. | :ref:`int<class_int>` | :ref:`separation<class_VSplitContainer_theme_constant_separation>` | ``12`` |
  30. +-----------------------------------+--------------------------------------------------------------------------------------------+--------+
  31. | :ref:`Texture2D<class_Texture2D>` | :ref:`grabber<class_VSplitContainer_theme_icon_grabber>` | |
  32. +-----------------------------------+--------------------------------------------------------------------------------------------+--------+
  33. .. rst-class:: classref-section-separator
  34. ----
  35. .. rst-class:: classref-descriptions-group
  36. Theme Property Descriptions
  37. ---------------------------
  38. .. _class_VSplitContainer_theme_constant_autohide:
  39. .. rst-class:: classref-themeproperty
  40. :ref:`int<class_int>` **autohide** = ``1``
  41. Boolean value. If 1 (``true``), the grabber will hide automatically when it isn't under the cursor. If 0 (``false``), it's always visible.
  42. .. rst-class:: classref-item-separator
  43. ----
  44. .. _class_VSplitContainer_theme_constant_minimum_grab_thickness:
  45. .. rst-class:: classref-themeproperty
  46. :ref:`int<class_int>` **minimum_grab_thickness** = ``6``
  47. The minimum thickness of the area users can click on to grab the splitting line. If :ref:`separation<class_VSplitContainer_theme_constant_separation>` or :ref:`grabber<class_VSplitContainer_theme_icon_grabber>`'s thickness are too small, this ensure that the splitting line can still be dragged.
  48. .. rst-class:: classref-item-separator
  49. ----
  50. .. _class_VSplitContainer_theme_constant_separation:
  51. .. rst-class:: classref-themeproperty
  52. :ref:`int<class_int>` **separation** = ``12``
  53. The space between sides of the container.
  54. .. rst-class:: classref-item-separator
  55. ----
  56. .. _class_VSplitContainer_theme_icon_grabber:
  57. .. rst-class:: classref-themeproperty
  58. :ref:`Texture2D<class_Texture2D>` **grabber**
  59. The icon used for the grabber drawn in the middle area.
  60. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  61. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  62. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  63. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  64. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  65. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`