class_centercontainer.rst 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the CenterContainer.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_CenterContainer:
  6. CenterContainer
  7. ===============
  8. **Inherits:** :ref:`Container<class_Container>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Keeps children controls centered.
  13. Properties
  14. ----------
  15. +-------------------------+------------------------------------------------------------------+-------+
  16. | :ref:`bool<class_bool>` | :ref:`use_top_left<class_CenterContainer_property_use_top_left>` | false |
  17. +-------------------------+------------------------------------------------------------------+-------+
  18. Description
  19. -----------
  20. CenterContainer keeps children controls centered. This container keeps all children to their minimum size, in the center.
  21. Property Descriptions
  22. ---------------------
  23. .. _class_CenterContainer_property_use_top_left:
  24. - :ref:`bool<class_bool>` **use_top_left**
  25. +-----------+-------------------------+
  26. | *Default* | false |
  27. +-----------+-------------------------+
  28. | *Setter* | set_use_top_left(value) |
  29. +-----------+-------------------------+
  30. | *Getter* | is_using_top_left() |
  31. +-----------+-------------------------+
  32. If ``true``, centers children relative to the ``CenterContainer``'s top left corner.