X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk_c%2Frect.h;h=07a85f9eb696d221eea2037c12b139991ae5ed08;hb=261034b354cc3571ef59d0b13bdbdecbb2e06075;hp=4d08828cb35514f9c388b72f243ea015fc9c623e;hpb=e5c5b4bf700f9bf00dd88bd4b6a471ac1ccefaff;p=chaz%2Fopenbox diff --git a/otk_c/rect.h b/otk_c/rect.h index 4d08828c..07a85f9e 100644 --- a/otk_c/rect.h +++ b/otk_c/rect.h @@ -1,5 +1,16 @@ -typedef struct { +// -*- mode: C; indent-tabs-mode: nil; c-basic-offset: 2; -*- +#ifndef __rect_h +#define __rect_h + +#include + +extern PyTypeObject OtkRect_Type; + +typedef struct OtkRect { + PyObject_HEAD int x, y, width, height; } OtkRect; PyObject *OtkRect_New(int x, int y, int width, int height); + +#endif // __rect_h