1/*
2
3Copyright 1988, 1998  The Open Group
4
5Permission to use, copy, modify, distribute, and sell this software and its
6documentation for any purpose is hereby granted without fee, provided that
7the above copyright notice appear in all copies and that both that
8copyright notice and this permission notice appear in supporting
9documentation.
10
11The above copyright notice and this permission notice shall be included in
12all copies or substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
17OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21Except as contained in this notice, the name of The Open Group shall not be
22used in advertising or otherwise to promote the sale, use or other dealings
23in this Software without prior written authorization from The Open Group.
24
25*/
26
27/*
28 * The interfaces described by this header file are for miscellaneous utilities
29 * and are not part of the Xlib standard.
30 */
31
32#ifndef _XMU_STDCMAP_H_
33#define _XMU_STDCMAP_H_
34
35#include <X11/Xfuncproto.h>
36
37_XFUNCPROTOBEGIN
38
39Status XmuAllStandardColormaps
40(
41 Display		*dpy
42 );
43
44Status XmuCreateColormap
45(
46 Display		*dpy,
47 XStandardColormap	*colormap
48 );
49
50void XmuDeleteStandardColormap
51(
52 Display		*dpy,
53 int			screen,
54 Atom			property
55 );
56
57Status XmuGetColormapAllocation
58(
59 XVisualInfo		*vinfo,
60 Atom			property,
61 unsigned long		*red_max_return,
62 unsigned long		*green_max_return,
63 unsigned long		*blue_max_return
64 );
65
66Status XmuLookupStandardColormap
67(
68 Display		*dpy,
69 int			screen,
70 VisualID		visualid,
71 unsigned int		depth,
72 Atom			property,
73 Bool			replace,
74 Bool			retain
75 );
76
77XStandardColormap *XmuStandardColormap
78(
79 Display		*dpy,
80 int			screen,
81 VisualID		visualid,
82 unsigned int		depth,
83 Atom			property,
84 Colormap		cmap,
85 unsigned long		red_max,
86 unsigned long		green_max,
87 unsigned long		blue_max
88 );
89
90Status XmuVisualStandardColormaps
91(
92 Display		*dpy,
93 int			screen,
94 VisualID		visualid,
95 unsigned int		depth,
96 Bool			replace,
97 Bool			retain
98 );
99
100Bool XmuDistinguishableColors
101(
102 XColor			*colors,
103 int			count
104 );
105
106Bool XmuDistinguishablePixels
107(
108 Display		*dpy,
109 Colormap		cmap,
110 unsigned long		*pixels,
111 int			count
112 );
113
114_XFUNCPROTOEND
115
116#endif /* _XMU_STDCMAP_H_ */
117