make rect a proper pyobject. use "typesafety"
[mikachu/openbox.git] / otk_c / rect.h
1 // -*- mode: C; indent-tabs-mode: nil; -*-
2 #ifndef   __rect_h
3 #define   __rect_h
4
5 #include <Python.h>
6
7 typedef struct OtkRect {
8   PyObject_HEAD
9   int x, y, width, height;
10 } OtkRect;
11
12 PyObject *OtkRect_New(int x, int y, int width, int height);
13
14 #endif // __rect_h