Fix ExplainWindowPlacement when using "NoUSPosition" style.
[fvwm.git] / libs / PictureUtils.h
blobab12213b6f84693bb3dda10cf72e2e200e2f9b9e
1 /* -*-c-*- */
3 #ifndef Picture_Utils_H
4 #define Picture_Utils_H
6 #define PICTURE_CALLED_BY_FVWM 0
7 #define PICTURE_CALLED_BY_MODULE 1
9 void PictureReduceColorName(char **my_color);
10 void PictureAllocColors(
11 Display *dpy, Colormap cmap, XColor *colors, int size, Bool no_limit);
12 int PictureAllocColor(Display *dpy, Colormap cmap, XColor *c, int no_limit);
13 int PictureAllocColorAllProp(
14 Display *dpy, Colormap cmap, XColor *c, int x, int y,
15 Bool no_limit, Bool is_8, Bool do_dither);
16 int PictureAllocColorImage(
17 Display *dpy, PictureImageColorAllocator *pica, XColor *c, int x,
18 int y);
19 PictureImageColorAllocator *PictureOpenImageColorAllocator(
20 Display *dpy, Colormap cmap, int x, int y, Bool no_limit,
21 Bool save_pixels, int dither, Bool is_8);
22 void PictureCloseImageColorAllocator(
23 Display *dpy, PictureImageColorAllocator *pica,
24 int *nalloc_pixels, Pixel **alloc_pixels, int *no_limit);
25 void PictureFreeColors(
26 Display *dpy, Colormap cmap, Pixel *pixels, int n,
27 unsigned long planes, Bool no_limit);
28 Pixel PictureGetNextColor(Pixel p, int n);
29 Bool PictureDitherByDefault(void);
30 Bool PictureUseBWOnly(void);
31 int PictureInitColors(
32 int call_type, Bool init_color_limit, PictureColorLimitOption *opt,
33 Bool use_my_color_limit, Bool init_dither);
34 void PicturePrintColorInfo(int verbose);
36 #endif