class_centercontainer.rst 2.1 KB

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