class_boxcontainer.rst 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the BoxContainer.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_BoxContainer:
  5. BoxContainer
  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:`VBoxContainer<class_vboxcontainer>`, :ref:`HBoxContainer<class_hboxcontainer>`, :ref:`ColorPicker<class_colorpicker>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Base class for box containers.
  13. Member Functions
  14. ----------------
  15. +-------+--------------------------------------------------------------------------------------------+
  16. | void | :ref:`add_spacer<class_BoxContainer_add_spacer>` **(** :ref:`bool<class_bool>` begin **)** |
  17. +-------+--------------------------------------------------------------------------------------------+
  18. Member Variables
  19. ----------------
  20. .. _class_BoxContainer_alignment:
  21. - :ref:`AlignMode<enum_boxcontainer_alignmode>` **alignment** - The alignment of the container's children (must be one of ALIGN_BEGIN, ALIGN_CENTER, or ALIGN_END).
  22. Enums
  23. -----
  24. .. _enum_BoxContainer_AlignMode:
  25. enum **AlignMode**
  26. - **ALIGN_BEGIN** = **0** --- Aligns children with the beginning of the container.
  27. - **ALIGN_CENTER** = **1** --- Aligns children with the center of the container.
  28. - **ALIGN_END** = **2** --- Aligns children with the end of the container.
  29. Description
  30. -----------
  31. Arranges child controls vertically or horizontally, and rearranges the controls automatically when their minimum size changes.
  32. Member Function Description
  33. ---------------------------
  34. .. _class_BoxContainer_add_spacer:
  35. - void **add_spacer** **(** :ref:`bool<class_bool>` begin **)**
  36. Adds a control to the box as a spacer. If ``true``, *begin* will insert the spacer control in front of other children.