MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / get_current_screen

Method get_current_screen

scene/main/window.cpp:363–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361}
362
363int Window::get_current_screen() const {
364 ERR_READ_THREAD_GUARD_V(0);
365
366 if (window_id != DisplayServer::INVALID_WINDOW_ID) {
367 current_screen = DisplayServer::get_singleton()->window_get_current_screen(window_id);
368 }
369 return current_screen;
370}
371
372void Window::set_position(const Point2i &p_position) {
373 ERR_MAIN_THREAD_GUARD;

Callers 6

_open_dock_in_windowMethod · 0.80
get_window_screenMethod · 0.80
_build_advanced_menuMethod · 0.80

Calls 1

Tested by

no test coverage detected