]> icculus.org git repositories - dana/openbox.git/blob - render/color.h
oops
[dana/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     gint key;
20     gint refcount;
21 };
22
23 void RrColorAllocateGC(RrColor *in);
24 XColor *RrPickColor(const RrInstance *inst, gint r, gint g, gint b);
25 void RrReduceDepth(const RrInstance *inst, RrPixel32 *data, XImage *im);
26 void RrIncreaseDepth(const RrInstance *inst, RrPixel32 *data, XImage *im);
27
28 #endif /* __color_h */