class_centercontainer.rst 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/CenterContainer.xml.
  6. .. _class_CenterContainer:
  7. CenterContainer
  8. ===============
  9. **Inherits:** :ref:`Container<class_Container>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. Keeps children controls centered.
  11. Description
  12. -----------
  13. CenterContainer keeps children controls centered. This container keeps all children to their minimum size, in the center.
  14. Tutorials
  15. ---------
  16. - :doc:`GUI containers <../tutorials/ui/gui_containers>`
  17. Properties
  18. ----------
  19. +-------------------------+------------------------------------------------------------------+-----------+
  20. | :ref:`bool<class_bool>` | :ref:`use_top_left<class_CenterContainer_property_use_top_left>` | ``false`` |
  21. +-------------------------+------------------------------------------------------------------+-----------+
  22. Property Descriptions
  23. ---------------------
  24. .. _class_CenterContainer_property_use_top_left:
  25. - :ref:`bool<class_bool>` **use_top_left**
  26. +-----------+-------------------------+
  27. | *Default* | ``false`` |
  28. +-----------+-------------------------+
  29. | *Setter* | set_use_top_left(value) |
  30. +-----------+-------------------------+
  31. | *Getter* | is_using_top_left() |
  32. +-----------+-------------------------+
  33. If ``true``, centers children relative to the ``CenterContainer``'s top left corner.
  34. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  35. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  36. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  37. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  38. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  39. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`