Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/scene/Actor.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-07-22 09:54:27 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-07-22 09:54:27 (GMT)
commita02313d85aa3dd2e53c4ee98a5e407460e292456 (patch)
treebdf0b63e4fa99c5e47d06acdeb7ab1245b22e968 /sugar/scene/Actor.py
parent2aa23cfa42e1ea5db895bb12a47ca1b35451bcb1 (diff)
Beginnings of a simple scene API. Inspired opened-hand's Clutter
Diffstat (limited to 'sugar/scene/Actor.py')
-rw-r--r--sugar/scene/Actor.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/sugar/scene/Actor.py b/sugar/scene/Actor.py
new file mode 100644
index 0000000..1ee7e2d
--- /dev/null
+++ b/sugar/scene/Actor.py
@@ -0,0 +1,17 @@
+class Actor:
+ def __init__(self):
+ self._x = 0
+ self._y = 0
+ self._width = -1
+ self._height = -1
+
+ def set_position(self, x, y):
+ self._x = x
+ self._y = y
+
+ def set_size(self, width, height):
+ self._width = width
+ self._height = height
+
+ def render(self, window):
+ pass