Imported Upstream version 1.1.1
[platform/upstream/libXmu.git] / include / X11 / Xmu / StdCmap.h
1 /*
2
3 Copyright 1988, 1998  The Open Group
4
5 Permission to use, copy, modify, distribute, and sell this software and its
6 documentation for any purpose is hereby granted without fee, provided that
7 the above copyright notice appear in all copies and that both that
8 copyright notice and this permission notice appear in supporting
9 documentation.
10
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the Software.
13
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
17 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21 Except as contained in this notice, the name of The Open Group shall not be
22 used in advertising or otherwise to promote the sale, use or other dealings
23 in 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
39 Status XmuAllStandardColormaps
40 (
41  Display                *dpy
42  );
43
44 Status XmuCreateColormap
45 (
46  Display                *dpy,
47  XStandardColormap      *colormap
48  );
49
50 void XmuDeleteStandardColormap
51 (
52  Display                *dpy,
53  int                    screen,
54  Atom                   property
55  );
56
57 Status 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
66 Status 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
77 XStandardColormap *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
90 Status XmuVisualStandardColormaps
91 (
92  Display                *dpy,
93  int                    screen,
94  VisualID               visualid,
95  unsigned int           depth,
96  Bool                   replace,
97  Bool                   retain
98  );
99
100 Bool XmuDistinguishableColors
101 (
102  XColor                 *colors,
103  int                    count
104  );
105
106 Bool 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_ */