[3.2] Add window click-through support.

This commit is contained in:
bruvzg
2020-06-29 12:31:13 +03:00
parent 31d0f8ad8d
commit e51fed9d1b
11 changed files with 128 additions and 0 deletions

View File

@@ -215,6 +215,11 @@ void _OS::set_window_title(const String &p_title) {
OS::get_singleton()->set_window_title(p_title);
}
void _OS::set_window_mouse_passthrough(const PoolVector2Array &p_region) {
OS::get_singleton()->set_window_mouse_passthrough(p_region);
}
int _OS::get_mouse_button_state() const {
return OS::get_singleton()->get_mouse_button_state();
@@ -1307,6 +1312,7 @@ void _OS::_bind_methods() {
ClassDB::bind_method(D_METHOD("has_touchscreen_ui_hint"), &_OS::has_touchscreen_ui_hint);
ClassDB::bind_method(D_METHOD("set_window_title", "title"), &_OS::set_window_title);
ClassDB::bind_method(D_METHOD("set_window_mouse_passthrough", "region"), &_OS::set_window_mouse_passthrough);
ClassDB::bind_method(D_METHOD("set_low_processor_usage_mode", "enable"), &_OS::set_low_processor_usage_mode);
ClassDB::bind_method(D_METHOD("is_in_low_processor_usage_mode"), &_OS::is_in_low_processor_usage_mode);

View File

@@ -150,6 +150,7 @@ public:
Point2 get_mouse_position() const;
void set_window_title(const String &p_title);
void set_window_mouse_passthrough(const PoolVector2Array &p_region);
int get_mouse_button_state() const;
void set_clipboard(const String &p_text);