diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-03-21 13:08:46 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-04-19 08:54:53 +0300 |
commit | 520a8d8ed2f8161c94ff9d32608212faef34df14 (patch) | |
tree | a23b4f08b9c61f89ee54da647b331fcb186077d1 /servers/display_server.cpp | |
parent | 1b4b8934e080ec5300c78547527517f4a5b733e9 (diff) | |
download | redot-engine-520a8d8ed2f8161c94ff9d32608212faef34df14.tar.gz |
Add project manager / editor initial screen settings, implement DisplayServer.get_keyboard_focus_screen method.
Diffstat (limited to 'servers/display_server.cpp')
-rw-r--r-- | servers/display_server.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/display_server.cpp b/servers/display_server.cpp index 1e60094106..dc8c308389 100644 --- a/servers/display_server.cpp +++ b/servers/display_server.cpp @@ -649,6 +649,7 @@ void DisplayServer::_bind_methods() { ClassDB::bind_method(D_METHOD("get_screen_count"), &DisplayServer::get_screen_count); ClassDB::bind_method(D_METHOD("get_primary_screen"), &DisplayServer::get_primary_screen); + ClassDB::bind_method(D_METHOD("get_keyboard_focus_screen"), &DisplayServer::get_keyboard_focus_screen); ClassDB::bind_method(D_METHOD("get_screen_from_rect", "rect"), &DisplayServer::get_screen_from_rect); 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)); @@ -794,6 +795,8 @@ void DisplayServer::_bind_methods() { BIND_ENUM_CONSTANT(MOUSE_MODE_CONFINED); BIND_ENUM_CONSTANT(MOUSE_MODE_CONFINED_HIDDEN); + BIND_CONSTANT(SCREEN_WITH_MOUSE_FOCUS); + BIND_CONSTANT(SCREEN_WITH_KEYBOARD_FOCUS); BIND_CONSTANT(SCREEN_PRIMARY); BIND_CONSTANT(SCREEN_OF_MAIN_WINDOW); |