Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:26

0001 /*
0002 
0003 Copyright 1988, 1998  The Open Group
0004 
0005 Permission to use, copy, modify, distribute, and sell this software and its
0006 documentation for any purpose is hereby granted without fee, provided that
0007 the above copyright notice appear in all copies and that both that
0008 copyright notice and this permission notice appear in supporting
0009 documentation.
0010 
0011 The above copyright notice and this permission notice shall be included in
0012 all copies or substantial portions of the Software.
0013 
0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0017 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0018 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0019 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0020 
0021 Except as contained in this notice, the name of The Open Group shall not be
0022 used in advertising or otherwise to promote the sale, use or other dealings
0023 in this Software without prior written authorization from The Open Group.
0024 
0025 */
0026 
0027 /*
0028  * The interfaces described by this header file are for miscellaneous utilities
0029  * and are not part of the Xlib standard.
0030  */
0031 
0032 #ifndef _XMU_STDCMAP_H_
0033 #define _XMU_STDCMAP_H_
0034 
0035 #include <X11/Xfuncproto.h>
0036 
0037 _XFUNCPROTOBEGIN
0038 
0039 Status XmuAllStandardColormaps
0040 (
0041  Display        *dpy
0042  );
0043 
0044 Status XmuCreateColormap
0045 (
0046  Display        *dpy,
0047  XStandardColormap  *colormap
0048  );
0049 
0050 void XmuDeleteStandardColormap
0051 (
0052  Display        *dpy,
0053  int            screen,
0054  Atom           property
0055  );
0056 
0057 Status XmuGetColormapAllocation
0058 (
0059  XVisualInfo        *vinfo,
0060  Atom           property,
0061  unsigned long      *red_max_return,
0062  unsigned long      *green_max_return,
0063  unsigned long      *blue_max_return
0064  );
0065 
0066 Status XmuLookupStandardColormap
0067 (
0068  Display        *dpy,
0069  int            screen,
0070  VisualID       visualid,
0071  unsigned int       depth,
0072  Atom           property,
0073  Bool           replace,
0074  Bool           retain
0075  );
0076 
0077 XStandardColormap *XmuStandardColormap
0078 (
0079  Display        *dpy,
0080  int            screen,
0081  VisualID       visualid,
0082  unsigned int       depth,
0083  Atom           property,
0084  Colormap       cmap,
0085  unsigned long      red_max,
0086  unsigned long      green_max,
0087  unsigned long      blue_max
0088  );
0089 
0090 Status XmuVisualStandardColormaps
0091 (
0092  Display        *dpy,
0093  int            screen,
0094  VisualID       visualid,
0095  unsigned int       depth,
0096  Bool           replace,
0097  Bool           retain
0098  );
0099 
0100 Bool XmuDistinguishableColors
0101 (
0102  XColor         *colors,
0103  int            count
0104  );
0105 
0106 Bool XmuDistinguishablePixels
0107 (
0108  Display        *dpy,
0109  Colormap       cmap,
0110  unsigned long      *pixels,
0111  int            count
0112  );
0113 
0114 _XFUNCPROTOEND
0115 
0116 #endif /* _XMU_STDCMAP_H_ */