* remove unusesd static variable nocursor
[fvwm.git] / libs / ColorUtils.h
blob6f418fbdff206a30b5d71312de133d85b8743634
1 #ifndef LIB_COLORUTILS_H
2 #define LIB_COLORUTILS_H
4 /*
5 * Stuff for dealing w/ bitmaps & pixmaps:
6 */
8 XColor *GetShadowColor(Pixel);
9 XColor *GetHiliteColor(Pixel);
10 Pixel GetShadow(Pixel);
11 Pixel GetHilite(Pixel);
12 XColor *GetForeShadowColor(Pixel foreground, Pixel background);
13 Pixel GetForeShadow(Pixel foreground, Pixel background);
14 XColor *GetTintedColor(Pixel in, Pixel tint, int percent);
15 Pixel GetTintedPixel(Pixel in, Pixel tint, int percent);
17 /* This function converts the colour stored in a colorcell (pixel) into the
18 * string representation of a colour. The output is printed at the
19 * address 'output'. It is either in rgb format ("rgb:rrrr/gggg/bbbb") if
20 * use_hash is False or in hash notation ("#rrrrggggbbbb") if use_hash is true.
21 * The return value is the number of characters used by the string. The
22 * rgb values of the output are undefined if the colorcell is invalid. The
23 * memory area pointed at by 'output' must be at least 64 bytes (in case of
24 * future extensions and multibyte characters).*/
25 int pixel_to_color_string(
26 Display *dpy, Colormap cmap, Pixel pixel, char *output, Bool use_hash);
28 Pixel GetSimpleColor(char *name);
29 /* handles colorset color names too */
30 Pixel GetColor(char *name);
32 /* duplicate an already allocated color */
33 Pixel fvwmlib_clone_color(Pixel p);
34 void fvwmlib_free_colors(Display *dpy, Pixel *pixels, int n, Bool no_limit);
35 void fvwmlib_copy_color(
36 Display *dpy, Pixel *dst_color, Pixel *src_color, Bool do_free_dest,
37 Bool do_copy_src);
39 #endif /* LIB_COLORUTILS_H */