class_centercontainer.rst 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_CenterContainer:
  4. CenterContainer
  5. ===============
  6. **Inherits:** :ref:`Container<class_container>` **<** :ref:`Control<class_control>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Keeps children controls centered.
  11. Member Functions
  12. ----------------
  13. +--------------------------+--------------------------------------------------------------------------------------------------------------+
  14. | :ref:`bool<class_bool>` | :ref:`is_using_top_left<class_CenterContainer_is_using_top_left>` **(** **)** const |
  15. +--------------------------+--------------------------------------------------------------------------------------------------------------+
  16. | void | :ref:`set_use_top_left<class_CenterContainer_set_use_top_left>` **(** :ref:`bool<class_bool>` enable **)** |
  17. +--------------------------+--------------------------------------------------------------------------------------------------------------+
  18. Description
  19. -----------
  20. CenterContainer Keeps children controls centered. This container keeps all children to their minimum size, in the center.
  21. Member Function Description
  22. ---------------------------
  23. .. _class_CenterContainer_is_using_top_left:
  24. - :ref:`bool<class_bool>` **is_using_top_left** **(** **)** const
  25. Should put children to the top left corner instead of center of the container.
  26. .. _class_CenterContainer_set_use_top_left:
  27. - void **set_use_top_left** **(** :ref:`bool<class_bool>` enable **)**
  28. This function will anchor the container children to the top left corner of the the container boundaries, moving all its children to that position, (the children new center will be the top left corner of the container).