[vlc-commits] commit: python-vlc: define Rectangle class (Olivier Aubert )

git at videolan.org git at videolan.org
Tue Nov 16 14:29:30 CET 2010


vlc/python | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Tue Nov 16 11:11:48 2010 +0100| [b40a0d6fa27be1ab96bd8c4e1f8962b145dd52d9] | committer: Olivier Aubert 

python-vlc: define Rectangle class

> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=b40a0d6fa27be1ab96bd8c4e1f8962b145dd52d9
---

 header.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/header.py b/header.py
index d5541bb..4e872ad 100755
--- a/header.py
+++ b/header.py
@@ -241,4 +241,12 @@ class Event(ctypes.Structure):
         ('u', EventUnion),
         ]
 
+class Rectangle(ctypes.Structure):
+    _fields_ = [
+        ('top',    ctypes.c_int),
+        ('left',   ctypes.c_int),
+        ('bottom', ctypes.c_int),
+        ('right',  ctypes.c_int),
+        ]
+
 ### End of header.py ###



More information about the vlc-commits mailing list