diff options
Diffstat (limited to 'core/bind')
| -rw-r--r-- | core/bind/core_bind.cpp | 12 | ||||
| -rw-r--r-- | core/bind/core_bind.h | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp index d67b93603..db234484d 100644 --- a/core/bind/core_bind.cpp +++ b/core/bind/core_bind.cpp @@ -260,6 +260,13 @@ bool _OS::is_window_maximized() const { return OS::get_singleton()->is_window_maximized(); } +void _OS::set_borderless_window(bool p_borderless) { + OS::get_singleton()->set_borderless_window(p_borderless); +} + +bool _OS::get_borderless_window() const { + return OS::get_singleton()->get_borderless_window(); +} void _OS::set_use_file_access_save_and_swap(bool p_enable) { @@ -865,6 +872,11 @@ void _OS::_bind_methods() { 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("set_borderless_window", "borderless"), &_OS::set_borderless_window); + ObjectTypeDB::bind_method(_MD("get_borderless_window"), &_OS::get_borderless_window); + ObjectTypeDB::bind_method(_MD("set_multisamples", "multisamples"), &_OS::set_multisamples); + ObjectTypeDB::bind_method(_MD("get_multisamples"), &_OS::get_multisamples); + ObjectTypeDB::bind_method(_MD("set_screen_orientation","orientation"),&_OS::set_screen_orientation); ObjectTypeDB::bind_method(_MD("get_screen_orientation"),&_OS::get_screen_orientation); diff --git a/core/bind/core_bind.h b/core/bind/core_bind.h index 7b3494ebc..ab11c4804 100644 --- a/core/bind/core_bind.h +++ b/core/bind/core_bind.h @@ -128,6 +128,8 @@ public: virtual void set_window_maximized(bool p_enabled); virtual bool is_window_maximized() const; + virtual void set_borderless_window(bool p_borderless); + virtual bool get_borderless_window() const; Error native_video_play(String p_path, float p_volume, String p_audio_track, String p_subtitle_track); bool native_video_is_playing(); |
