class_centercontainer.rst 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. Properties
  13. ----------
  14. +-------------------------+---------------------------------------------------------+
  15. | :ref:`bool<class_bool>` | :ref:`use_top_left<class_CenterContainer_use_top_left>` |
  16. +-------------------------+---------------------------------------------------------+
  17. Description
  18. -----------
  19. CenterContainer Keeps children controls centered. This container keeps all children to their minimum size, in the center.
  20. Property Descriptions
  21. ---------------------
  22. .. _class_CenterContainer_use_top_left:
  23. - :ref:`bool<class_bool>` **use_top_left**
  24. +----------+-------------------------+
  25. | *Setter* | set_use_top_left(value) |
  26. +----------+-------------------------+
  27. | *Getter* | is_using_top_left() |
  28. +----------+-------------------------+
  29. If ``true`` centers children relative to the ``CenterContainer``'s top left corner. Default value: ``false``.