summaryrefslogtreecommitdiffstats
path: root/scene/gui/control.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2022-12-18 16:58:19 +0100
committerJuan Linietsky <reduzio@gmail.com>2022-12-19 10:59:47 +0100
commit80b578b0609b38d467e55461a386a45ddf188339 (patch)
treeaa303e620d81c143e3e70a641e0c17568cb90b6f /scene/gui/control.h
parent0bb94df247a0a0c22333e2e99744fc3fd184601a (diff)
downloadredot-engine-80b578b0609b38d467e55461a386a45ddf188339.tar.gz
Restore 'rotation_degrees' properties.
By popular demand, restoring the helper properties to rotate objects in degrees. Affected are local and global rotations for: * Node2D * Node3D * Control
Diffstat (limited to 'scene/gui/control.h')
-rw-r--r--scene/gui/control.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/control.h b/scene/gui/control.h
index 12710f3a93..f82fba3b1b 100644
--- a/scene/gui/control.h
+++ b/scene/gui/control.h
@@ -451,7 +451,9 @@ public:
void set_scale(const Vector2 &p_scale);
Vector2 get_scale() const;
void set_rotation(real_t p_radians);
+ void set_rotation_degrees(real_t p_degrees);
real_t get_rotation() const;
+ real_t get_rotation_degrees() const;
void set_pivot_offset(const Vector2 &p_pivot);
Vector2 get_pivot_offset() const;