openbox/otk_c/color.h

24 lines
526 B
C
Raw Normal View History

2002-12-21 12:27:05 +00:00
// -*- mode: C; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2002-12-21 02:09:54 +00:00
#ifndef __color_h
#define __color_h
#include <X11/Xlib.h>
#include <Python.h>
2002-12-21 12:27:05 +00:00
extern PyTypeObject OtkColor_Type;
2002-12-21 12:04:15 +00:00
//! OtkColor objects are immutable. DONT CHANGE THEM.
2002-12-21 02:09:54 +00:00
typedef struct OtkColor {
2002-12-21 12:04:15 +00:00
PyObject_HEAD
2002-12-21 02:09:54 +00:00
int red, green, blue;
int screen;
unsigned long pixel;
} OtkColor;
2002-12-21 12:04:15 +00:00
PyObject *OtkColor_FromRGB(int r, int g, int b, int screen);
PyObject *OtkColor_FromName(const char *name, int screen);
2002-12-21 02:09:54 +00:00
void OtkColor_CleanupColorCache();
#endif // __color_h