class_centercontainer.rst 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.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. Keeps children controls centered.
  10. Description
  11. -----------
  12. CenterContainer keeps children controls centered. This container keeps all children to their minimum size, in the center.
  13. Properties
  14. ----------
  15. +-------------------------+------------------------------------------------------------------+-----------+
  16. | :ref:`bool<class_bool>` | :ref:`use_top_left<class_CenterContainer_property_use_top_left>` | ``false`` |
  17. +-------------------------+------------------------------------------------------------------+-----------+
  18. Property Descriptions
  19. ---------------------
  20. .. _class_CenterContainer_property_use_top_left:
  21. - :ref:`bool<class_bool>` **use_top_left**
  22. +-----------+-------------------------+
  23. | *Default* | ``false`` |
  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.
  30. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  31. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  32. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`