diff options
| author | Rémi Verschelde | 2016-07-21 17:29:45 +0200 |
|---|---|---|
| committer | GitHub | 2016-07-21 17:29:45 +0200 |
| commit | d723e5a62ff10d338b8a2848e5a7a43a81233c24 (patch) | |
| tree | 96b4aac1dc2795ecb49ecf0c149be43890794e1e /core/bind/core_bind.cpp | |
| parent | 4abc945466c69426cf4c00ab87d61b927ef1639d (diff) | |
| parent | 5c355a63d3a86039a8f1a88e6ea508209de97dbc (diff) | |
| download | godot-d723e5a62ff10d338b8a2848e5a7a43a81233c24.tar.gz godot-d723e5a62ff10d338b8a2848e5a7a43a81233c24.tar.zst godot-d723e5a62ff10d338b8a2848e5a7a43a81233c24.zip | |
Merge pull request #5560 from vnen/os-request-attention
Add OS.request_attention() for Windows
Diffstat (limited to 'core/bind/core_bind.cpp')
| -rw-r--r-- | core/bind/core_bind.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp index 9cc934bb6..e56684dc5 100644 --- a/core/bind/core_bind.cpp +++ b/core/bind/core_bind.cpp @@ -944,6 +944,11 @@ void _OS::native_video_stop() { OS::get_singleton()->native_video_stop(); }; +void _OS::request_attention() { + + OS::get_singleton()->request_attention(); +} + bool _OS::is_debug_build() const { #ifdef DEBUG_ENABLED @@ -1042,6 +1047,7 @@ void _OS::_bind_methods() { ObjectTypeDB::bind_method(_MD("is_window_minimized"),&_OS::is_window_minimized); ObjectTypeDB::bind_method(_MD("set_window_maximized", "enabled"),&_OS::set_window_maximized); ObjectTypeDB::bind_method(_MD("is_window_maximized"),&_OS::is_window_maximized); + ObjectTypeDB::bind_method(_MD("request_attention"), &_OS::request_attention); ObjectTypeDB::bind_method(_MD("set_borderless_window", "borderless"), &_OS::set_borderless_window); ObjectTypeDB::bind_method(_MD("get_borderless_window"), &_OS::get_borderless_window); |
