Merge pull request #50092 from YeldhamDev/window_get_contents_expose
Expose `Window.get_contents_minimum_size()` to scripts
This commit is contained in:
commit
a8fb450b3c
2 changed files with 9 additions and 0 deletions
|
@ -19,6 +19,13 @@
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="get_contents_minimum_size" qualifiers="const">
|
||||||
|
<return type="Vector2">
|
||||||
|
</return>
|
||||||
|
<description>
|
||||||
|
Returns the combined minimum size from the child [Control] nodes of the window.
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
<method name="get_flag" qualifiers="const">
|
<method name="get_flag" qualifiers="const">
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
|
|
|
@ -1393,6 +1393,8 @@ void Window::_bind_methods() {
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("is_embedded"), &Window::is_embedded);
|
ClassDB::bind_method(D_METHOD("is_embedded"), &Window::is_embedded);
|
||||||
|
|
||||||
|
ClassDB::bind_method(D_METHOD("get_contents_minimum_size"), &Window::get_contents_minimum_size);
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("set_content_scale_size", "size"), &Window::set_content_scale_size);
|
ClassDB::bind_method(D_METHOD("set_content_scale_size", "size"), &Window::set_content_scale_size);
|
||||||
ClassDB::bind_method(D_METHOD("get_content_scale_size"), &Window::get_content_scale_size);
|
ClassDB::bind_method(D_METHOD("get_content_scale_size"), &Window::get_content_scale_size);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue