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

Method set_current_screen

scene/main/window.cpp:353–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353void Window::set_current_screen(int p_screen) {
354 ERR_MAIN_THREAD_GUARD;
355
356 current_screen = p_screen;
357 if (window_id == DisplayServer::INVALID_WINDOW_ID) {
358 return;
359 }
360 DisplayServer::get_singleton()->window_set_current_screen(p_screen, window_id);
361}
362
363int Window::get_current_screen() const {
364 ERR_READ_THREAD_GUARD_V(0);

Callers 3

restore_windowMethod · 0.80

Calls 1

Tested by

no test coverage detected