32 #include "scene/2d/canvas_item.h" 48 void _update_transform();
51 void _set_rotd(
float p_angle);
52 float _get_rotd()
const;
54 void _update_xform_values();
59 void _notification(
int p_what);
61 static void _bind_methods();
64 virtual Variant edit_get_state()
const;
65 virtual void edit_set_state(
const Variant& p_state);
66 virtual void edit_set_rect(
const Rect2& p_edit_rect);
67 virtual void edit_rotate(
float p_rot);
68 virtual void edit_set_pivot(
const Point2& p_pivot);
69 virtual Point2 edit_get_pivot()
const;
70 virtual bool edit_has_pivot()
const;
72 void set_pos(
const Point2& p_pos);
73 void set_rot(
float p_radians);
74 void set_rotd(
float p_degrees);
75 void set_scale(
const Size2& p_scale);
77 void rotate(
float p_radians);
78 void move_x(
float p_delta,
bool p_scaled=
false);
79 void move_y(
float p_delta,
bool p_scaled=
false);
80 void translate(
const Vector2& p_amount);
81 void global_translate(
const Vector2& p_amount);
82 void scale(
const Vector2& p_amount);
85 float get_rot()
const;
86 float get_rotd()
const;
87 Size2 get_scale()
const;
89 Point2 get_global_pos()
const;
90 virtual Rect2 get_item_rect()
const;
92 void set_transform(
const Matrix32& p_transform);
93 void set_global_transform(
const Matrix32& p_transform);
94 void set_global_pos(
const Point2& p_pos);
99 void look_at(
const Vector2& p_pos);
100 float get_angle_to(
const Vector2& p_pos)
const;
102 void set_z_as_relative(
bool p_enabled);
103 bool is_z_relative()
const;
105 Matrix32 get_relative_transform_to_parent(
const Node *p_parent)
const;
Definition: math_2d.h:204
Definition: canvas_item.h:87
Definition: math_2d.h:554