diff options
author | Juan Linietsky <reduzio@gmail.com> | 2020-03-19 23:32:09 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2020-03-26 15:49:44 +0100 |
commit | b3080bc2f4d7bc5c15b3a0ff7b67690c4677577e (patch) | |
tree | 0487e2d739133015048b1e0dd1fd9abaf7bbb18a /servers | |
parent | 09ba290364aaa5b54528e82144ec0a40e10b497b (diff) |
Popups have also been converted to windows
Controls using the old modal API have been replaced to use popups.
Diffstat (limited to 'servers')
-rw-r--r-- | servers/display_server.cpp | 1 | ||||
-rw-r--r-- | servers/display_server.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/servers/display_server.cpp b/servers/display_server.cpp index efa3c8af7b..d5d41948c6 100644 --- a/servers/display_server.cpp +++ b/servers/display_server.cpp @@ -252,6 +252,7 @@ void DisplayServer::_bind_methods() { ClassDB::bind_method(D_METHOD("get_screen_count"), &DisplayServer::get_screen_count); ClassDB::bind_method(D_METHOD("screen_get_position", "screen"), &DisplayServer::screen_get_position, DEFVAL(SCREEN_OF_MAIN_WINDOW)); ClassDB::bind_method(D_METHOD("screen_get_size", "screen"), &DisplayServer::screen_get_size, DEFVAL(SCREEN_OF_MAIN_WINDOW)); + ClassDB::bind_method(D_METHOD("screen_get_usable_rect", "screen"), &DisplayServer::screen_get_usable_rect, DEFVAL(SCREEN_OF_MAIN_WINDOW)); ClassDB::bind_method(D_METHOD("screen_get_dpi", "screen"), &DisplayServer::screen_get_dpi, DEFVAL(SCREEN_OF_MAIN_WINDOW)); ClassDB::bind_method(D_METHOD("screen_is_touchscreen", "screen"), &DisplayServer::screen_is_touchscreen, DEFVAL(SCREEN_OF_MAIN_WINDOW)); diff --git a/servers/display_server.h b/servers/display_server.h index dfa98e350f..d351f0e322 100644 --- a/servers/display_server.h +++ b/servers/display_server.h @@ -140,6 +140,7 @@ public: virtual int get_screen_count() const = 0; virtual Point2i screen_get_position(int p_screen = SCREEN_OF_MAIN_WINDOW) const = 0; virtual Size2i screen_get_size(int p_screen = SCREEN_OF_MAIN_WINDOW) const = 0; + virtual Rect2i screen_get_usable_rect(int p_screen = SCREEN_OF_MAIN_WINDOW) const = 0; virtual int screen_get_dpi(int p_screen = SCREEN_OF_MAIN_WINDOW) const = 0; virtual bool screen_is_touchscreen(int p_screen = SCREEN_OF_MAIN_WINDOW) const; enum ScreenOrientation { |