summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMichael Alexsander <michaelalexsander@protonmail.com>2023-08-02 13:53:37 -0300
committerMichael Alexsander <michaelalexsander@protonmail.com>2023-08-02 14:40:38 -0300
commitf270163ab0296011bdff057924f7c14e6683c311 (patch)
tree39b2167e29767bf5a73c9d97eeb3b3ef90a64a32 /doc
parentdc05278b03851df00f4cf5e70d20764892cbe90f (diff)
downloadredot-engine-f270163ab0296011bdff057924f7c14e6683c311.tar.gz
Expose `Window`'s `_get_contents_minimum_size()` to scripting
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Window.xml7
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">