diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-08-03 14:46:52 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-08-03 14:46:52 +0200 |
commit | f9d960c9259cf163584fd93fc93d9193fe06166d (patch) | |
tree | 8581fd29fe7e820d5caf6c95261ff840ad3cf7e1 /doc | |
parent | 95d71dbad1287af72d8d77bd249631d9599c9d9c (diff) | |
parent | f270163ab0296011bdff057924f7c14e6683c311 (diff) | |
download | redot-engine-f9d960c9259cf163584fd93fc93d9193fe06166d.tar.gz |
Merge pull request #80178 from YeldhamDev/override_all_the_things
Expose `Window`'s `_get_contents_minimum_size()` to scripting
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/Window.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/Window.xml b/doc/classes/Window.xml index 5790fc347a..82498b9ba4 100644 --- a/doc/classes/Window.xml +++ b/doc/classes/Window.xml @@ -10,6 +10,12 @@ <tutorials> </tutorials> <methods> + <method name="_get_contents_minimum_size" qualifiers="virtual const"> + <return type="Vector2" /> + <description> + Virtual method to be implemented by the user. Overrides the value returned by [method get_contents_minimum_size]. + </description> + </method> <method name="add_theme_color_override"> <return type="void" /> <param index="0" name="name" type="StringName" /> @@ -92,6 +98,7 @@ <return type="Vector2" /> <description> Returns the combined minimum size from the child [Control] nodes of the window. Use [method child_controls_changed] to update it when children nodes have changed. + The value returned by this method can be overridden with [method _get_contents_minimum_size]. </description> </method> <method name="get_flag" qualifiers="const"> |