summaryrefslogtreecommitdiff
path: root/scene/gui/control.h
diff options
context:
space:
mode:
authorPoommetee Ketson <poommetee@protonmail.com>2017-11-20 00:19:00 +0700
committerGitHub <noreply@github.com>2017-11-20 00:19:00 +0700
commitf5e85c61039f8ff17805172c7a417747070bbc98 (patch)
treedb0dd34791d799e701a8688b8bae45370968ada0 /scene/gui/control.h
parentd629a753ec8d6b3e01f608652e43909be1b2c254 (diff)
parent8d1f2b1857322ed2875cd83b275f3a80f04394a9 (diff)
Merge pull request #12955 from groud/editor_canvas_item_api_rework
Editor canvas item api rework
Diffstat (limited to 'scene/gui/control.h')
-rw-r--r--scene/gui/control.h24
1 files changed, 19 insertions, 5 deletions
diff --git a/scene/gui/control.h b/scene/gui/control.h
index 94c484ca50..92d1c969fc 100644
--- a/scene/gui/control.h
+++ b/scene/gui/control.h
@@ -271,10 +271,25 @@ public:
};
- virtual Variant edit_get_state() const;
- virtual void edit_set_state(const Variant &p_state);
- virtual void edit_set_rect(const Rect2 &p_edit_rect);
- virtual Size2 edit_get_minimum_size() const;
+ virtual Dictionary _edit_get_state() const;
+ virtual void _edit_set_state(const Dictionary &p_state);
+
+ virtual void _edit_set_position(const Point2 &p_position);
+ virtual Point2 _edit_get_position() const;
+
+ virtual void _edit_set_rect(const Rect2 &p_edit_rect);
+ virtual Rect2 _edit_get_rect() const;
+ virtual bool _edit_use_rect() const;
+
+ virtual void _edit_set_rotation(float p_rotation);
+ virtual float _edit_get_rotation() const;
+ virtual bool _edit_use_rotation() const;
+
+ virtual void _edit_set_pivot(const Point2 &p_pivot);
+ virtual Point2 _edit_get_pivot() const;
+ virtual bool _edit_use_pivot() const;
+
+ virtual Size2 _edit_get_minimum_size() const;
void accept_event();
@@ -427,7 +442,6 @@ public:
CursorShape get_default_cursor_shape() const;
virtual CursorShape get_cursor_shape(const Point2 &p_pos = Point2i()) const;
- virtual Rect2 get_item_rect() const;
virtual Transform2D get_transform() const;
bool is_toplevel_control() const;