diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-11-22 16:22:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-22 16:22:57 +0100 |
commit | 76aa1d0a433441e9bd863e1f489e9905c545f630 (patch) | |
tree | a5b299f1bd5bbeee6bf717ae5a02f28977f04af5 /doc/classes | |
parent | 8daf0cc49c4bab8dd039ced214e527b21708661e (diff) | |
parent | eabf8f5edf6dc3346bd6a6e771e382f1a20a5c29 (diff) |
Merge pull request #55151 from Chaosus/control_reset_size
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Control.xml | 6 | ||||
-rw-r--r-- | doc/classes/Window.xml | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/doc/classes/Control.xml b/doc/classes/Control.xml index 668912b6bd..8739e0157d 100644 --- a/doc/classes/Control.xml +++ b/doc/classes/Control.xml @@ -720,6 +720,12 @@ Removes a local override for a theme [StyleBox] with the specified [code]name[/code] previously added by [method add_theme_stylebox_override] or via the Inspector dock. </description> </method> + <method name="reset_size"> + <return type="void" /> + <description> + Resets the size to [method get_combined_minimum_size]. This is equivalent to calling [code]set_size(Vector2())[/code] (or any size below the minimum). + </description> + </method> <method name="set_anchor"> <return type="void" /> <argument index="0" name="side" type="int" enum="Side" /> diff --git a/doc/classes/Window.xml b/doc/classes/Window.xml index f36b926bef..3fee1feae8 100644 --- a/doc/classes/Window.xml +++ b/doc/classes/Window.xml @@ -230,6 +230,12 @@ <description> </description> </method> + <method name="reset_size"> + <return type="void" /> + <description> + Resets the size to the minimum size, which is the max of [member min_size] and (if [member wrap_controls] is enabled) [method get_contents_minimum_size]. This is equivalent to calling [code]set_size(Vector2i())[/code] (or any size below the minimum). + </description> + </method> <method name="set_flag"> <return type="void" /> <argument index="0" name="flag" type="int" enum="Window.Flags" /> |