class_centercontainer.rst 942 B

1234567891011121314151617181920212223242526272829303132
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the CenterContainer.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_CenterContainer:
  5. CenterContainer
  6. ===============
  7. **Inherits:** :ref:`Container<class_container>` **<** :ref:`Control<class_control>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Keeps children controls centered.
  12. Member Variables
  13. ----------------
  14. .. _class_CenterContainer_use_top_left:
  15. - :ref:`bool<class_bool>` **use_top_left** - If ``true`` centers children relative to the ``CenterContainer``'s top left corner. Default value: ``false``.
  16. Description
  17. -----------
  18. CenterContainer Keeps children controls centered. This container keeps all children to their minimum size, in the center.