X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk_c%2Fcolor.h;h=b8dff22536849f258684902a6ae5d7c9c29e653d;hb=808f11a6c9546fb6fb2f36e24b3202295765513e;hp=6e9f421b13ef54d5b3e9ed0ceb23bde5f6e861ab;hpb=187e7db9c039d7369766aeae7dfdf87f191ac446;p=chaz%2Fopenbox diff --git a/otk_c/color.h b/otk_c/color.h index 6e9f421b..b8dff225 100644 --- a/otk_c/color.h +++ b/otk_c/color.h @@ -1,24 +1,23 @@ -// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- +// -*- mode: C; indent-tabs-mode: nil; c-basic-offset: 2; -*- #ifndef __color_h #define __color_h #include #include +extern PyTypeObject OtkColor_Type; + //! OtkColor objects are immutable. DONT CHANGE THEM. typedef struct OtkColor { PyObject_HEAD int red, green, blue; int screen; - Bool allocated; unsigned long pixel; } OtkColor; PyObject *OtkColor_FromRGB(int r, int g, int b, int screen); PyObject *OtkColor_FromName(const char *name, int screen); -unsigned long OtkColor_Pixel(OtkColor *self); - void OtkColor_CleanupColorCache(); #endif // __color_h