summaryrefslogtreecommitdiffstats
path: root/scene/2d/node_2d.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-01-04 01:16:14 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-01-04 01:16:14 -0300
commitb085c40edfac45ec1c8b866c789f6e9bab7e5e08 (patch)
treefb53cad5fcb37fcad404805fe7330d36fcd4e905 /scene/2d/node_2d.h
parent3fae505128d5bfdeec42244820d0b85d0408f2b7 (diff)
downloadredot-engine-b085c40edfac45ec1c8b866c789f6e9bab7e5e08.tar.gz
-Conversion of most properties to a simpler syntax, easier to use by script
-Modified help to display properties GDScript can still not make use of them, though.
Diffstat (limited to 'scene/2d/node_2d.h')
-rw-r--r--scene/2d/node_2d.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/scene/2d/node_2d.h b/scene/2d/node_2d.h
index 514b7b24a8..15dfd703fe 100644
--- a/scene/2d/node_2d.h
+++ b/scene/2d/node_2d.h
@@ -69,9 +69,9 @@ public:
virtual Point2 edit_get_pivot() const;
virtual bool edit_has_pivot() const;
- void set_pos(const Point2& p_pos);
- void set_rot(float p_radians);
- void set_rotd(float p_degrees);
+ void set_position(const Point2& p_pos);
+ void set_rotation(float p_radians);
+ void set_rotation_in_degrees(float p_degrees);
void set_scale(const Size2& p_scale);
void rotate(float p_radians);
@@ -81,22 +81,22 @@ public:
void global_translate(const Vector2& p_amount);
void scale(const Size2& p_amount);
- Point2 get_pos() const;
- float get_rot() const;
- float get_rotd() const;
+ Point2 get_position() const;
+ float get_rotation() const;
+ float get_rotation_in_degrees() const;
Size2 get_scale() const;
- Point2 get_global_pos() const;
- float get_global_rot() const;
- float get_global_rotd() const;
+ Point2 get_global_position() const;
+ float get_global_rotation() const;
+ float get_global_rotation_in_degrees() const;
Size2 get_global_scale() const;
virtual Rect2 get_item_rect() const;
void set_transform(const Matrix32& p_transform);
void set_global_transform(const Matrix32& p_transform);
- void set_global_pos(const Point2& p_pos);
- void set_global_rot(float p_radians);
- void set_global_rotd(float p_degrees);
+ void set_global_position(const Point2& p_pos);
+ void set_global_rotation(float p_radians);
+ void set_global_rotation_in_degrees(float p_degrees);
void set_global_scale(const Size2& p_scale);
void set_z(int p_z);