home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xibm.zip / common / ibmColor.h < prev    next >
C/C++ Source or Header  |  1991-09-20  |  2KB  |  66 lines

  1. /*
  2.  * $Id: ibmColor.h,v 1.1 1991/09/20 18:24:03 mtranle Exp $
  3.  *
  4.  * Copyright IBM Corporation 1987,1988,1989
  5.  *
  6.  * All Rights Reserved
  7.  *
  8.  * Permission to use, copy, modify, and distribute this software and its
  9.  * documentation for any purpose and without fee is hereby granted,
  10.  * provided that the above copyright notice appear in all copies and that 
  11.  * both that copyright notice and this permission notice appear in
  12.  * supporting documentation, and that the name of IBM not be
  13.  * used in advertising or publicity pertaining to distribution of the
  14.  * software without specific, written prior permission.
  15.  *
  16.  * IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  17.  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  18.  * IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  19.  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20.  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  21.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  22.  * SOFTWARE.
  23.  *
  24. */
  25.  
  26. #if !defined(NO_FUNCTION_PROTOTYPES)
  27.  
  28. extern void ibmAllocBlackAndWhitePixels(
  29.     ColormapPtr const pCmap);
  30.  
  31. extern void ibmResolveColorMono(
  32.     unsigned short int *pred,
  33.     unsigned short int *pgreen,
  34.     unsigned short int *pblue,
  35.     VisualPtr pVisual);
  36.  
  37. extern Bool ibmCreateStaticGrayColormap(
  38.     ColormapPtr const pCmap);
  39.  
  40. extern void ibmDestroyColormapMono(
  41.     ColormapPtr const pCmap);
  42.  
  43. extern unsigned long ibmFindColor(
  44.     ColormapPtr cmap,
  45.     unsigned short int r,
  46.     unsigned short int g,
  47.     unsigned short int b);
  48.  
  49. extern void ibmDefineDefaultColormapColors(
  50.     VisualPtr pVisual,
  51.     ColormapPtr pCmap);
  52.  
  53. #else
  54.  
  55. extern void ibmAllocBlackAndWhitePixels() ;
  56. extern void ibmResolveColorMono() ;
  57. extern Bool ibmCreateStaticGrayColormap() ;
  58. extern void ibmDestroyColormapMono() ;
  59. extern unsigned long ibmFindColor() ;
  60. extern void ibmDefineDefaultColormapColors();
  61.  
  62. #endif
  63.  
  64. extern char *ibmWhitePixelText ;
  65. extern char *ibmBlackPixelText ;
  66.