class_boxcontainer.rst 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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_BoxContainer:
  4. BoxContainer
  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:`VBoxContainer<class_vboxcontainer>`, :ref:`ButtonGroup<class_buttongroup>`, :ref:`HBoxContainer<class_hboxcontainer>`, :ref:`ColorPicker<class_colorpicker>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Base class for Box containers.
  12. Member Functions
  13. ----------------
  14. +------------------------+------------------------------------------------------------------------------------------------------+
  15. | :ref:`int<class_int>` | :ref:`get_alignment<class_BoxContainer_get_alignment>` **(** **)** const |
  16. +------------------------+------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`set_alignment<class_BoxContainer_set_alignment>` **(** :ref:`int<class_int>` alignment **)** |
  18. +------------------------+------------------------------------------------------------------------------------------------------+
  19. Numeric Constants
  20. -----------------
  21. - **ALIGN_BEGIN** = **0**
  22. - **ALIGN_CENTER** = **1**
  23. - **ALIGN_END** = **2**
  24. Description
  25. -----------
  26. Base class for Box containers. It arranges children controls vertically or horizontally, and rearranges them automatically when their minimum size changes.
  27. Member Function Description
  28. ---------------------------
  29. .. _class_BoxContainer_get_alignment:
  30. - :ref:`int<class_int>` **get_alignment** **(** **)** const
  31. .. _class_BoxContainer_set_alignment:
  32. - void **set_alignment** **(** :ref:`int<class_int>` alignment **)**