class_centercontainer.rst 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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.)`
  33. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  34. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  35. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`