You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Merge pull request #15564 from RandomShaper/adpod-topmost
Add new window setting: always on top
This commit is contained in:
@@ -304,6 +304,14 @@ bool _OS::is_window_maximized() const {
|
||||
return OS::get_singleton()->is_window_maximized();
|
||||
}
|
||||
|
||||
void _OS::set_window_always_on_top(bool p_enabled) {
|
||||
OS::get_singleton()->set_window_always_on_top(p_enabled);
|
||||
}
|
||||
|
||||
bool _OS::is_window_always_on_top() const {
|
||||
return OS::get_singleton()->is_window_always_on_top();
|
||||
}
|
||||
|
||||
void _OS::set_borderless_window(bool p_borderless) {
|
||||
OS::get_singleton()->set_borderless_window(p_borderless);
|
||||
}
|
||||
@@ -1025,6 +1033,8 @@ void _OS::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("is_window_minimized"), &_OS::is_window_minimized);
|
||||
ClassDB::bind_method(D_METHOD("set_window_maximized", "enabled"), &_OS::set_window_maximized);
|
||||
ClassDB::bind_method(D_METHOD("is_window_maximized"), &_OS::is_window_maximized);
|
||||
ClassDB::bind_method(D_METHOD("set_window_always_on_top", "enabled"), &_OS::set_window_always_on_top);
|
||||
ClassDB::bind_method(D_METHOD("is_window_always_on_top"), &_OS::is_window_always_on_top);
|
||||
ClassDB::bind_method(D_METHOD("request_attention"), &_OS::request_attention);
|
||||
ClassDB::bind_method(D_METHOD("get_real_window_size"), &_OS::get_real_window_size);
|
||||
ClassDB::bind_method(D_METHOD("center_window"), &_OS::center_window);
|
||||
|
||||
Reference in New Issue
Block a user