godot/doc/classes/CenterContainer.xml
Rémi Verschelde 967bfb0c4a doc: Remove revision.module_config from version string
It is now "3.0-alpha" instead of "3.0.alpha.custom_build{,.mono}",
limits unnecessary diffs.
2017-11-15 20:41:16 +01:00

38 lines
1.2 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<class name="CenterContainer" inherits="Container" category="Core" version="3.0-alpha">
<brief_description>
Keeps children controls centered.
</brief_description>
<description>
CenterContainer Keeps children controls centered. This container keeps all children to their minimum size, in the center.
</description>
<tutorials>
</tutorials>
<demos>
</demos>
<methods>
<method name="is_using_top_left" qualifiers="const">
<return type="bool">
</return>
<description>
Should put children to the top left corner instead of center of the container.
</description>
</method>
<method name="set_use_top_left">
<return type="void">
</return>
<argument index="0" name="enable" type="bool">
</argument>
<description>
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).
</description>
</method>
</methods>
<members>
<member name="use_top_left" type="bool" setter="set_use_top_left" getter="is_using_top_left">
</member>
</members>
<constants>
</constants>
</class>