[pyclutter/wip/introspection] Add readonly 'x' and 'y' properties to Clutter.ActorBox
- From: Bastian Winkler <bwinkler src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyclutter/wip/introspection] Add readonly 'x' and 'y' properties to Clutter.ActorBox
- Date: Wed, 18 Apr 2012 13:48:22 +0000 (UTC)
commit 8b09ebd0b99dd20e6bbfcab7f8eae5125a75381d
Author: Bastian Winkler <buz netbuz org>
Date: Tue Apr 17 13:07:58 2012 +0200
Add readonly 'x' and 'y' properties to Clutter.ActorBox
Just for convenience, like 'width' and 'height'
introspection/Clutter.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/introspection/Clutter.py b/introspection/Clutter.py
index e126089..9578855 100644
--- a/introspection/Clutter.py
+++ b/introspection/Clutter.py
@@ -228,6 +228,10 @@ class ActorBox(Clutter.ActorBox):
return self.equal(other)
return False
+ x = property(Clutter.ActorBox.get_x)
+
+ y = property(Clutter.ActorBox.get_y)
+
@property
def size(self):
return (self.x2 - self.x1, self.y2 - self.y1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]