summaryrefslogtreecommitdiff
path: root/otk_c/rect.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-21 12:39:49 +0000
committerDana Jansens <danakj@orodu.net>2002-12-21 12:39:49 +0000
commit0820c5100d7ea8daed00e7b1bf183edc9414728f (patch)
tree61111c19b7c4e98e3f7a96248cb1371c7d05a18c /otk_c/rect.h
parent9e4d1bbabcabef13b740dd7201e35c3314abfbee (diff)
make rect a proper pyobject. use "typesafety"
Diffstat (limited to 'otk_c/rect.h')
-rw-r--r--otk_c/rect.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/otk_c/rect.h b/otk_c/rect.h
index 50547b57..c32daa7a 100644
--- a/otk_c/rect.h
+++ b/otk_c/rect.h
@@ -4,7 +4,8 @@
#include <Python.h>
-typedef struct {
+typedef struct OtkRect {
+ PyObject_HEAD
int x, y, width, height;
} OtkRect;