more namespacing with Rr*
[mikachu/openbox.git] / render / color.h
1 #ifndef __color_h
2 #define __color_h
3
4 #include "render.h"
5
6 #include <X11/Xlib.h>
7 #include <X11/Xutil.h>
8 #include <glib.h>
9
10 struct _RrColor {
11     const RrInstance *inst;
12
13     int r;
14     int g;
15     int b;
16     unsigned long pixel;
17     GC gc;
18 };
19
20 void color_allocate_gc(RrColor *in);
21 XColor *pickColor(const RrInstance *inst, gint r, gint g, gint b);
22 void reduce_depth(const RrInstance *inst, RrPixel32 *data, XImage *im);
23 void increase_depth(const RrInstance *inst, RrPixel32 *data, XImage *im);
24
25 #endif /* __color_h */