diff options
Diffstat (limited to 'scene/gui/control.h')
-rw-r--r-- | scene/gui/control.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/gui/control.h b/scene/gui/control.h index f55010a354..92acedd89c 100644 --- a/scene/gui/control.h +++ b/scene/gui/control.h @@ -127,6 +127,7 @@ private: float rotation; Vector2 scale; + Vector2 pivot_offset; bool pending_resize; @@ -207,6 +208,8 @@ private: void _update_canvas_item_transform(); + Transform2D _get_internal_transform() const; + friend class Viewport; void _modal_stack_remove(); void _modal_set_prev_focus_owner(ObjectID p_prev); @@ -306,6 +309,9 @@ public: float get_rotation() const; float get_rotation_deg() const; + void set_pivot_offset(const Vector2 &p_pivot); + Vector2 get_pivot_offset() const; + void set_scale(const Vector2 &p_scale); Vector2 get_scale() const; |