diff options
| author | Saracen | 2016-01-03 04:18:28 +0000 |
|---|---|---|
| committer | Saracen | 2016-03-12 16:38:12 +0000 |
| commit | 6eb4812317bc5207444ddbfe887d06969969b669 (patch) | |
| tree | 507901307887e4fb93d86917d79a552e264af042 /core/bind | |
| parent | 8b1dcbfe4d92f9d7273bbd2f1eb805e5c508961a (diff) | |
| download | godot-6eb4812.tar.gz godot-6eb4812.tar.zst godot-6eb4812.zip | |
Borderless window support for the Win32 build. Default window position is now also centred.
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(); |
