summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2019-06-13 15:31:08 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2019-06-15 09:49:11 +0300
commitb924fb97d6fddba818b9ad57722eaf777244e826 (patch)
tree393bf83183a7c06ea2fefb2ac3c78026c14f258e /doc/classes
parent5ec99dc62f159aea954e2ba64bce69de70662e91 (diff)
Add ability to limit maximum/minimum window size.
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/OS.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/classes/OS.xml b/doc/classes/OS.xml
index 2592bc6775..723a8061c6 100644
--- a/doc/classes/OS.xml
+++ b/doc/classes/OS.xml
@@ -810,6 +810,12 @@
<member name="low_processor_usage_mode" type="bool" setter="set_low_processor_usage_mode" getter="is_in_low_processor_usage_mode">
If [code]true[/code], the engine optimizes for low processor usage by only refreshing the screen if needed. Can improve battery consumption on mobile.
</member>
+ <member name="min_window_size" type="Vector2" setter="set_min_window_size" getter="get_min_window_size">
+ The minimum size of the window (without counting window manager decorations). Does not affect fullscreen mode. Set to [code](0, 0)[/code] to reset to the system default value.
+ </member>
+ <member name="max_window_size" type="Vector2" setter="set_max_window_size" getter="get_max_window_size">
+ The maximum size of the window (without counting window manager decorations). Does not affect fullscreen mode. Set to [code](0, 0)[/code] to reset to the system default value.
+ </member>
<member name="screen_orientation" type="int" setter="set_screen_orientation" getter="get_screen_orientation" enum="_OS.ScreenOrientation">
The current screen orientation.
</member>