class_splitcontainer.rst 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the SplitContainer.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_SplitContainer:
  5. SplitContainer
  6. ==============
  7. **Inherits:** :ref:`Container<class_container>` **<** :ref:`Control<class_control>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Inherited By:** :ref:`HSplitContainer<class_hsplitcontainer>`, :ref:`VSplitContainer<class_vsplitcontainer>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Container for splitting and adjusting.
  13. Member Functions
  14. ----------------
  15. +--------------------------+---------------------------------------------------------------------------------------------------------------------+
  16. | :ref:`int<class_int>` | :ref:`get_dragger_visibility<class_SplitContainer_get_dragger_visibility>` **(** **)** const |
  17. +--------------------------+---------------------------------------------------------------------------------------------------------------------+
  18. | :ref:`int<class_int>` | :ref:`get_split_offset<class_SplitContainer_get_split_offset>` **(** **)** const |
  19. +--------------------------+---------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`bool<class_bool>` | :ref:`is_collapsed<class_SplitContainer_is_collapsed>` **(** **)** const |
  21. +--------------------------+---------------------------------------------------------------------------------------------------------------------+
  22. | void | :ref:`set_collapsed<class_SplitContainer_set_collapsed>` **(** :ref:`bool<class_bool>` collapsed **)** |
  23. +--------------------------+---------------------------------------------------------------------------------------------------------------------+
  24. | void | :ref:`set_dragger_visibility<class_SplitContainer_set_dragger_visibility>` **(** :ref:`int<class_int>` mode **)** |
  25. +--------------------------+---------------------------------------------------------------------------------------------------------------------+
  26. | void | :ref:`set_split_offset<class_SplitContainer_set_split_offset>` **(** :ref:`int<class_int>` offset **)** |
  27. +--------------------------+---------------------------------------------------------------------------------------------------------------------+
  28. Signals
  29. -------
  30. - **dragged** **(** :ref:`int<class_int>` offset **)**
  31. Emitted when the dragger is dragged by user.
  32. Member Variables
  33. ----------------
  34. - :ref:`bool<class_bool>` **collapsed**
  35. - :ref:`int<class_int>` **dragger_visibility**
  36. - :ref:`int<class_int>` **split_offset**
  37. Numeric Constants
  38. -----------------
  39. - **DRAGGER_VISIBLE** = **0** --- The split dragger is visible.
  40. - **DRAGGER_HIDDEN** = **1** --- The split dragger is invisible.
  41. - **DRAGGER_HIDDEN_COLLAPSED** = **2** --- The split dragger is invisible and collapsed.
  42. Description
  43. -----------
  44. Container for splitting two controls vertically or horizontally, with a grabber that allows adjusting the split offset or ratio.
  45. Member Function Description
  46. ---------------------------
  47. .. _class_SplitContainer_get_dragger_visibility:
  48. - :ref:`int<class_int>` **get_dragger_visibility** **(** **)** const
  49. Return visibility of the split dragger (one of DRAGGER_VISIBLE, DRAGGER_HIDDEN or DRAGGER_HIDDEN_COLLAPSED).
  50. .. _class_SplitContainer_get_split_offset:
  51. - :ref:`int<class_int>` **get_split_offset** **(** **)** const
  52. Return the split offset.
  53. .. _class_SplitContainer_is_collapsed:
  54. - :ref:`bool<class_bool>` **is_collapsed** **(** **)** const
  55. Return true if the split is collapsed.
  56. .. _class_SplitContainer_set_collapsed:
  57. - void **set_collapsed** **(** :ref:`bool<class_bool>` collapsed **)**
  58. Set if the split must be collapsed.
  59. .. _class_SplitContainer_set_dragger_visibility:
  60. - void **set_dragger_visibility** **(** :ref:`int<class_int>` mode **)**
  61. Set visibility of the split dragger (*mode* must be one of DRAGGER_VISIBLE, DRAGGER_HIDDEN or DRAGGER_HIDDEN_COLLAPSED).
  62. .. _class_SplitContainer_set_split_offset:
  63. - void **set_split_offset** **(** :ref:`int<class_int>` offset **)**
  64. Set the split offset.