diff options
author | kobewi <kobewi4e@gmail.com> | 2022-03-13 16:02:24 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-03-13 16:05:08 +0100 |
commit | bcf13dc1756d3668478204eaace47db77942346a (patch) | |
tree | 47ef110f8752ef8c95da005cb110e5c7ee305654 /scene/gui | |
parent | c8fce1661da2ed02e94d3edd91fc3f31aa6888cc (diff) |
Expose methods for screen-space transforms
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/control.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index d8659b1f18..d2d1b5e9b7 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -3224,6 +3224,7 @@ void Control::_bind_methods() { ClassDB::bind_method(D_METHOD("get_custom_minimum_size"), &Control::get_custom_minimum_size); ClassDB::bind_method(D_METHOD("get_parent_area_size"), &Control::get_parent_area_size); ClassDB::bind_method(D_METHOD("get_global_position"), &Control::get_global_position); + ClassDB::bind_method(D_METHOD("get_screen_position"), &Control::get_screen_position); ClassDB::bind_method(D_METHOD("get_rect"), &Control::get_rect); ClassDB::bind_method(D_METHOD("get_global_rect"), &Control::get_global_rect); ClassDB::bind_method(D_METHOD("set_focus_mode", "mode"), &Control::set_focus_mode); |