class_separator.rst 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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.2/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.2/doc/classes/Separator.xml.
  6. .. _class_Separator:
  7. Separator
  8. =========
  9. **Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`HSeparator<class_HSeparator>`, :ref:`VSeparator<class_VSeparator>`
  11. Abstract base class for separators.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. Abstract base class for separators, used for separating other controls. **Separator**\ s are purely visual and normally drawn as a :ref:`StyleBoxLine<class_StyleBoxLine>`.
  16. .. rst-class:: classref-reftable-group
  17. Theme Properties
  18. ----------------
  19. .. table::
  20. :widths: auto
  21. +---------------------------------+--------------------------------------------------------------+-------+
  22. | :ref:`int<class_int>` | :ref:`separation<class_Separator_theme_constant_separation>` | ``0`` |
  23. +---------------------------------+--------------------------------------------------------------+-------+
  24. | :ref:`StyleBox<class_StyleBox>` | :ref:`separator<class_Separator_theme_style_separator>` | |
  25. +---------------------------------+--------------------------------------------------------------+-------+
  26. .. rst-class:: classref-section-separator
  27. ----
  28. .. rst-class:: classref-descriptions-group
  29. Theme Property Descriptions
  30. ---------------------------
  31. .. _class_Separator_theme_constant_separation:
  32. .. rst-class:: classref-themeproperty
  33. :ref:`int<class_int>` **separation** = ``0``
  34. The size of the area covered by the separator. Effectively works like a minimum width/height.
  35. .. rst-class:: classref-item-separator
  36. ----
  37. .. _class_Separator_theme_style_separator:
  38. .. rst-class:: classref-themeproperty
  39. :ref:`StyleBox<class_StyleBox>` **separator**
  40. The style for the separator line. Works best with :ref:`StyleBoxLine<class_StyleBoxLine>` (remember to enable :ref:`StyleBoxLine.vertical<class_StyleBoxLine_property_vertical>` for :ref:`VSeparator<class_VSeparator>`).
  41. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  42. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  43. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  44. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  45. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  46. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  47. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`