mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
classref: Add property overview and setter/getter like in editor docs
Output from godotengine/godot#22013. Fixes #1729.
This commit is contained in:
@@ -8,6 +8,7 @@ CenterContainer
|
||||
===============
|
||||
|
||||
**Inherits:** :ref:`Container<class_Container>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||
|
||||
**Category:** Core
|
||||
|
||||
Brief Description
|
||||
@@ -15,6 +16,13 @@ Brief Description
|
||||
|
||||
Keeps children controls centered.
|
||||
|
||||
Properties
|
||||
----------
|
||||
|
||||
+-------------------------+---------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`use_top_left<class_CenterContainer_use_top_left>` |
|
||||
+-------------------------+---------------------------------------------------------+
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -25,6 +33,13 @@ Property Descriptions
|
||||
|
||||
.. _class_CenterContainer_use_top_left:
|
||||
|
||||
- :ref:`bool<class_bool>` **use_top_left** - If ``true`` centers children relative to the ``CenterContainer``'s top left corner. Default value: ``false``.
|
||||
- :ref:`bool<class_bool>` **use_top_left**
|
||||
|
||||
+----------+-------------------------+
|
||||
| *Setter* | set_use_top_left(value) |
|
||||
+----------+-------------------------+
|
||||
| *Getter* | is_using_top_left() |
|
||||
+----------+-------------------------+
|
||||
|
||||
If ``true`` centers children relative to the ``CenterContainer``'s top left corner. Default value: ``false``.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user