|
@@ -176,6 +176,10 @@ bool _OS::is_video_mode_fullscreen(int p_screen) const {
|
|
|
|
|
|
}
|
|
|
|
|
|
+int _OS::get_screen_count() const {
|
|
|
+ return OS::get_singleton()->get_screen_count();
|
|
|
+}
|
|
|
+
|
|
|
Point2 _OS::get_window_position() const {
|
|
|
return OS::get_singleton()->get_window_position();
|
|
|
}
|
|
@@ -656,6 +660,7 @@ void _OS::_bind_methods() {
|
|
|
ObjectTypeDB::bind_method(_MD("is_video_mode_resizable","screen"),&_OS::is_video_mode_resizable,DEFVAL(0));
|
|
|
ObjectTypeDB::bind_method(_MD("get_fullscreen_mode_list","screen"),&_OS::get_fullscreen_mode_list,DEFVAL(0));
|
|
|
|
|
|
+ ObjectTypeDB::bind_method(_MD("get_screen_count"),&_OS::get_screen_count);
|
|
|
ObjectTypeDB::bind_method(_MD("get_window_position"),&_OS::get_window_position);
|
|
|
ObjectTypeDB::bind_method(_MD("set_window_position"),&_OS::set_window_position);
|
|
|
ObjectTypeDB::bind_method(_MD("get_window_size"),&_OS::get_window_size);
|