StdCmap.h

Go to the documentation of this file.
00001 /* $Xorg: StdCmap.h,v 1.5 2001/02/09 02:03:53 xorgcvs Exp $ */
00002 
00003 /*
00004  
00005 Copyright 1988, 1998  The Open Group
00006 
00007 Permission to use, copy, modify, distribute, and sell this software and its
00008 documentation for any purpose is hereby granted without fee, provided that
00009 the above copyright notice appear in all copies and that both that
00010 copyright notice and this permission notice appear in supporting
00011 documentation.
00012 
00013 The above copyright notice and this permission notice shall be included in
00014 all copies or substantial portions of the Software.
00015 
00016 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00017 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00018 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
00019 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
00020 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00021 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00022 
00023 Except as contained in this notice, the name of The Open Group shall not be
00024 used in advertising or otherwise to promote the sale, use or other dealings
00025 in this Software without prior written authorization from The Open Group.
00026 
00027 */
00028 /* $XFree86: xc/lib/Xmu/StdCmap.h,v 1.8 2001/01/23 17:38:14 keithp Exp $ */
00029 
00030 /*
00031  * The interfaces described by this header file are for miscellaneous utilities
00032  * and are not part of the Xlib standard.
00033  */
00034 
00035 #ifndef _XMU_STDCMAP_H_
00036 #define _XMU_STDCMAP_H_
00037 
00038 #include <X11/Xfuncproto.h>
00039 
00040 _XFUNCPROTOBEGIN
00041 
00042 Status XmuAllStandardColormaps
00043 (
00044  Display                *dpy
00045  );
00046 
00047 Status XmuCreateColormap
00048 (
00049  Display                *dpy,
00050  XStandardColormap      *colormap
00051  );
00052 
00053 void XmuDeleteStandardColormap
00054 (
00055  Display                *dpy,
00056  int                    screen,
00057  Atom                   property
00058  );
00059 
00060 Status XmuGetColormapAllocation
00061 (
00062  XVisualInfo            *vinfo,
00063  Atom                   property,
00064  unsigned long          *red_max_return,
00065  unsigned long          *green_max_return,
00066  unsigned long          *blue_max_return
00067  );
00068 
00069 Status XmuLookupStandardColormap
00070 (
00071  Display                *dpy,
00072  int                    screen,
00073  VisualID               visualid,
00074  unsigned int           depth,
00075  Atom                   property,
00076  Bool                   replace,
00077  Bool                   retain
00078  );
00079 
00080 XStandardColormap *XmuStandardColormap
00081 (
00082  Display                *dpy,
00083  int                    screen,
00084  VisualID               visualid,
00085  unsigned int           depth,
00086  Atom                   property,
00087  Colormap               cmap,
00088  unsigned long          red_max,
00089  unsigned long          green_max,
00090  unsigned long          blue_max
00091  );
00092 
00093 Status XmuVisualStandardColormaps
00094 (
00095  Display                *dpy,
00096  int                    screen,
00097  VisualID               visualid,
00098  unsigned int           depth,
00099  Bool                   replace,
00100  Bool                   retain
00101  );
00102 
00103 Bool XmuDistinguishableColors
00104 (
00105  XColor                 *colors,
00106  int                    count
00107  );
00108 
00109 Bool XmuDistinguishablePixels
00110 (
00111  Display                *dpy,
00112  Colormap               cmap,
00113  unsigned long          *pixels,
00114  int                    count
00115  );
00116 
00117 _XFUNCPROTOEND
00118 
00119 #endif /* _XMU_STDCMAP_H_ */

Generated on Sun Mar 4 15:03:56 2007 for Scilab [trunk] by  doxygen 1.5.1