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

Method get_window_rect

editor/gui/window_wrapper.cpp:222–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222Rect2i WindowWrapper::get_window_rect() const {
223 ERR_FAIL_COND_V(!get_window_enabled(), Rect2i());
224 return Rect2i(window->get_position(), window->get_size());
225}
226
227int WindowWrapper::get_window_screen() const {
228 ERR_FAIL_COND_V(!get_window_enabled(), -1);

Callers 4

get_window_layoutMethod · 0.80
get_window_layoutMethod · 0.80
save_docks_to_configMethod · 0.80

Calls 3

Rect2iClass · 0.50
get_positionMethod · 0.45
get_sizeMethod · 0.45

Tested by

no test coverage detected