1 /*
2    color.h
3 
4    Bill Kendrick & Mike Hufnagel
5    Last modified: 11/18/95 (combined color.h with colormap.h)
6 
7    Color related routines routines.
8 */
9 
10 #ifndef COLOR_H
11 #define COLOR_H
12 
13 #include <X11/Xlib.h>
14 #include <X11/Xutil.h>
15 
16 unsigned long AllocNamedColor(Display *display, Colormap colormap,
17                               char* colorname, unsigned long default_color);
18 /*
19    Allocates a read-only (sharable) color cell in the given colormap,
20    using the RGB database to convert the color name to an RGB value.
21    See /usr/lib/X11/rgb.txt for the database listing.
22 */
23 
24 
25 int SetUpColormap(Display *display, int screen, Window window, Visual *visual,
26 		  Colormap *colormap);
27 /*
28    Create an X colormap using the given screen and visual.  Uses the
29    default colormap, if possible, to avoid palette switches when
30    other windows are brought "forward".
31 */
32 
33 #endif /* COLOR_H */
34