]> Dogcows Code - chaz/openbox/blob - render/color.h
use the new color hash to cache RrColors
[chaz/openbox] / 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 */
This page took 0.040363 seconds and 5 git commands to generate.