summaryrefslogtreecommitdiff
path: root/doc/classes/Container.xml
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2021-11-08 23:53:41 +0300
committerYuri Sizov <yuris@humnom.net>2022-02-10 20:29:34 +0300
commit107b6f299cda3f8b63432930f19cdd9bc24fb6dc (patch)
tree24026b11ed93dea43d86c16544e2ac40ec030517 /doc/classes/Container.xml
parent242c636a63ac2d8b002ace37388dce9273a9048a (diff)
Reorganize inspector layout workflow for Control nodes
Diffstat (limited to 'doc/classes/Container.xml')
-rw-r--r--doc/classes/Container.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/classes/Container.xml b/doc/classes/Container.xml
index 83655425fc..076a800e29 100644
--- a/doc/classes/Container.xml
+++ b/doc/classes/Container.xml
@@ -10,6 +10,20 @@
<tutorials>
</tutorials>
<methods>
+ <method name="_get_allowed_size_flags_horizontal" qualifiers="virtual const">
+ <return type="PackedInt32Array" />
+ <description>
+ Implement to return a list of allowed horizontal [enum Control.SizeFlags] for child nodes. This doesn't technically prevent the usages of any other size flags, if your implementation requires that. This only limits the options available to the user in the inspector dock.
+ [b]Note:[/b] Having no size flags is equal to having [constant Control.SIZE_SHRINK_BEGIN]. As such, this value is always implicitly allowed.
+ </description>
+ </method>
+ <method name="_get_allowed_size_flags_vertical" qualifiers="virtual const">
+ <return type="PackedInt32Array" />
+ <description>
+ Implement to return a list of allowed vertical [enum Control.SizeFlags] for child nodes. This doesn't technically prevent the usages of any other size flags, if your implementation requires that. This only limits the options available to the user in the inspector dock.
+ [b]Note:[/b] Having no size flags is equal to having [constant Control.SIZE_SHRINK_BEGIN]. As such, this value is always implicitly allowed.
+ </description>
+ </method>
<method name="fit_child_in_rect">
<return type="void" />
<argument index="0" name="child" type="Control" />