[cluttermm] Path updated
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cluttermm] Path updated
- Date: Tue, 22 Apr 2014 10:35:04 +0000 (UTC)
commit 143d2a4d153b807051636f564bb632f08d069c78
Author: Ian Martin <martin_id vodafone co nz>
Date: Thu Apr 17 11:32:56 2014 +1200
Path updated
Multiple methods require float values, instead of int.
Also removed get_position as it uses Knot.
clutter/src/path.hg | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
---
diff --git a/clutter/src/path.hg b/clutter/src/path.hg
index 08ec498..7fc6b05 100644
--- a/clutter/src/path.hg
+++ b/clutter/src/path.hg
@@ -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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]