[cluttermm] Wrapped ActorBox's get_[origin|size|area] & contains methods.
- From: Chris Kühl <chriskuehl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cluttermm] Wrapped ActorBox's get_[origin|size|area] & contains methods.
- Date: Mon, 31 Jan 2011 01:16:35 +0000 (UTC)
commit da0bcccab4067d15d826d8a0850c02be6b9301db
Author: Chris Kühl <chrisk openismus com>
Date: Mon Jan 31 01:47:12 2011 +0100
Wrapped ActorBox's get_[origin|size|area] & contains methods.
* clutter/src/actor.hg: Wrapped new methods, moved conversion.
ChangeLog | 6 ++++++
clutter/src/actor.hg | 7 ++++++-
2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d10296d..68ff3f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-01-31 Chris Kühl <chrisk openismus com>
+
+ Wrapped ActorBox's get_[origin|size|area] & contains methods.
+
+ * clutter/src/actor.hg: Wrapped new methods, moved conversion.
+
2011-01-24 Chris Kühl <chrisk openismus com>
Initial wrapping of ClutterDeviceManager.
diff --git a/clutter/src/actor.hg b/clutter/src/actor.hg
index 4803b2a..0c0f6ab 100644
--- a/clutter/src/actor.hg
+++ b/clutter/src/actor.hg
@@ -42,6 +42,12 @@ class ActorBox
public:
ActorBox(float x1, float y1, float x2, float y2);
+#m4 _CONVERSION(`float&',`float*',`&($3)')
+ _WRAP_METHOD(void get_origin(float& x, float& y) const, clutter_actor_box_get_origin)
+ _WRAP_METHOD(void get_size(float& width, float& height) const, clutter_actor_box_get_size)
+ _WRAP_METHOD(float get_area() const, clutter_actor_box_get_area)
+ _WRAP_METHOD(bool contains(float x, float y) const, clutter_actor_box_contains)
+
_MEMBER_GET(x1, x1, float, float)
_MEMBER_SET(x1, x1, float, float)
_MEMBER_GET(y1, y1, float, float)
@@ -206,7 +212,6 @@ public:
_WRAP_METHOD(void set_request_mode(RequestMode mode), clutter_actor_set_request_mode)
_WRAP_METHOD(RequestMode get_request_mode() const, clutter_actor_get_request_mode)
-#m4 _CONVERSION(`float&',`float*',`&($3)')
_WRAP_METHOD(void get_preferred_size(float& min_width_p, float& min_height_p, float& natural_width_p, float& natural_height_p) const, clutter_actor_get_preferred_size)
_WRAP_METHOD(void get_preferred_width(float for_height, float& min_width_p, float& natural_width_p) const, clutter_actor_get_preferred_width)
_WRAP_METHOD(void get_preferred_height(float for_width, float& min_height_p, float& natural_height_p) const, clutter_actor_get_preferred_height)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]