Commit 143d2a4d authored by Ian Martin's avatar Ian Martin Committed by Murray Cumming

Path updated

Multiple methods require float values, instead of int.
Also removed get_position as it uses Knot.
parent 21e06458
......@@ -110,13 +110,13 @@ public:
inline Nodes nodes();
inline const Nodes nodes() const;
_WRAP_METHOD(void add_move_to(int x, int y), clutter_path_add_move_to)
_WRAP_METHOD(void add_rel_move_to(int x, int y), clutter_path_add_rel_move_to)
_WRAP_METHOD(void add_line_to(int x, int y), clutter_path_add_line_to)
_WRAP_METHOD(void add_rel_line_to(int x, int y), clutter_path_add_rel_line_to)
_WRAP_METHOD(void add_curve_to(int x1, int y1, int x2, int y2, int x3, int y3),
_WRAP_METHOD(void add_move_to(float x, float y), clutter_path_add_move_to)
_WRAP_METHOD(void add_rel_move_to(float x, float y), clutter_path_add_rel_move_to)
_WRAP_METHOD(void add_line_to(float x, float y), clutter_path_add_line_to)
_WRAP_METHOD(void add_rel_line_to(float x, float y), clutter_path_add_rel_line_to)
_WRAP_METHOD(void add_curve_to(float x1, float y1, float x2, float y2, float x3, float y3),
clutter_path_add_curve_to)
_WRAP_METHOD(void add_rel_curve_to(int x1, int y1, int x2, int y2, int x3, int y3),
_WRAP_METHOD(void add_rel_curve_to(float x1, float y1, float x2, float y2, float x3, float y3),
clutter_path_add_rel_curve_to)
_WRAP_METHOD(void add_close(), clutter_path_add_close)
_WRAP_METHOD(bool add_string(const Glib::ustring& str), clutter_path_add_string)
......@@ -145,7 +145,12 @@ public:
_WRAP_METHOD(void to_cairo_path(::Cairo::RefPtr<Cairo::Context>& context) const, clutter_path_to_cairo_path)
_WRAP_METHOD(void clear(), clutter_path_clear)
_WRAP_METHOD(guint get_position(double progress, Knot& position), clutter_path_get_position)
// This should return a Knot, but that's deprecated.
//#m4 _INITIALIZATION(`ClutterPoint',`Point&',`Point($3)')
//#m4 _INITIALIZATION(`Point&',`ClutterPoint',`($3).gobj()')
//_WRAP_METHOD(guint get_position(double progress, Point& position{>>}), clutter_path_get_position)
_WRAP_METHOD(guint get_length() const, clutter_path_get_length)
_WRAP_PROPERTY("description", Glib::ustring)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment