class_centercontainer.rst 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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>` |
  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. | *Setter* | set_use_top_left(value) |
  27. +----------+-------------------------+
  28. | *Getter* | is_using_top_left() |
  29. +----------+-------------------------+
  30. If ``true``, centers children relative to the ``CenterContainer``'s top left corner. Default value: ``false``.