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

Method restore_window

editor/gui/window_wrapper.cpp:232–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232void WindowWrapper::restore_window(const Rect2i &p_rect, int p_screen) {
233 ERR_FAIL_COND(!is_window_available());
234 ERR_FAIL_INDEX(p_screen, DisplayServer::get_singleton()->get_screen_count());
235
236 _set_window_enabled_with_rect(true, p_rect);
237 window->set_current_screen(p_screen);
238}
239
240void WindowWrapper::restore_window_from_saved_position(const Rect2 p_window_rect, int p_screen, const Rect2 p_screen_rect) {
241 ERR_FAIL_COND(!is_window_available());

Callers 1

_open_dock_in_windowMethod · 0.80

Calls 2

set_current_screenMethod · 0.80
get_screen_countMethod · 0.45

Tested by

no test coverage detected