class_splitcontainer.rst 4.1 KB

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