diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2021-11-20 11:04:57 +0300 |
---|---|---|
committer | Yuri Roubinsky <chaosus89@gmail.com> | 2021-11-22 16:55:21 +0300 |
commit | eabf8f5edf6dc3346bd6a6e771e382f1a20a5c29 (patch) | |
tree | c0f181a442d43239b10e2379916df83c9f34e820 /doc | |
parent | ed02b8af59fceb48798c857306335fe0f7ff6a8a (diff) |
Added `reset_size` method to `Control` and `Window` classes
Diffstat (limited to 'doc')
-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 f6bb812070..8abaff741a 100644 --- a/doc/classes/Control.xml +++ b/doc/classes/Control.xml @@ -714,6 +714,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" /> |