home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xibm.zip / ppc / ppcGCstr.h < prev    next >
Text File  |  1989-11-07  |  4KB  |  87 lines

  1. /*
  2.  * Copyright IBM Corporation 1987,1988,1989
  3.  *
  4.  * All Rights Reserved
  5.  *
  6.  * Permission to use, copy, modify, and distribute this software and its
  7.  * documentation for any purpose and without fee is hereby granted,
  8.  * provided that the above copyright notice appear in all copies and that 
  9.  * both that copyright notice and this permission notice appear in
  10.  * supporting documentation, and that the name of IBM not be
  11.  * used in advertising or publicity pertaining to distribution of the
  12.  * software without specific, written prior permission.
  13.  *
  14.  * IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  15.  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  16.  * IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  17.  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  18.  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  19.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  20.  * SOFTWARE.
  21.  *
  22. */
  23. /***********************************************************
  24.         Copyright IBM Corporation 1988
  25.  
  26.                       All Rights Reserved
  27.  
  28. Permission to use, copy, modify, and distribute this software and its 
  29. documentation for any purpose and without fee is hereby granted, 
  30. provided that the above copyright notice appear in all copies and that
  31. both that copyright notice and this permission notice appear in 
  32. supporting documentation, and that the name of IBM not be
  33. used in advertising or publicity pertaining to distribution of the
  34. software without specific, written prior permission.  
  35.  
  36. IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  37. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  38. IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  39. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  40. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  41. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  42. SOFTWARE.
  43.  
  44. ******************************************************************/
  45.  
  46. /* $Header: /andrew/X11/r3src/r3plus/server/ddx/ibm/ppc/RCS/ppcGCstr.h,v 1.2 89/04/29 21:25:43 jeff Exp Locker: jeff $ */
  47. /* $Source: /andrew/X11/r3src/r3plus/server/ddx/ibm/ppc/RCS/ppcGCstr.h,v $ */
  48.  
  49. #if !defined(lint) && !defined(LOCORE) && defined(RCS_HDRS)
  50. static char *rcsidppc = "$Header: /andrew/X11/r3src/r3plus/server/ddx/ibm/ppc/RCS/ppcGCstr.h,v 1.2 89/04/29 21:25:43 jeff Exp Locker: jeff $" ;
  51. #endif
  52.  
  53. typedef struct {
  54.     unsigned long    planemask ;
  55.     unsigned long    fgPixel ;
  56.     unsigned long    bgPixel ;
  57.     int            alu ;
  58.     int            fillStyle ;
  59.     } ppcReducedRrop ;
  60.  
  61. /* ************************************************************************ */
  62.  
  63. /* private field of GC */
  64. typedef struct {
  65. /* The Next eleven (11) fields MUST CORRESPOND to
  66.  * the fields of a "mfbPrivGC" struct
  67.  * ----- BEGINNING OF "DO-NOT-CHANGE" REGION -----
  68.  */
  69.     unsigned char    rop ;        /* reduction of rasterop to 1 of 3 */
  70.     unsigned char    ropOpStip ;    /* rop for opaque stipple */
  71.     unsigned char    ropFillArea ;    /*  == alu, rop, or ropOpStip */
  72.     unsigned    fExpose:1 ;        /* callexposure handling ? */
  73.     unsigned    freeCompClip:1 ;
  74.     PixmapPtr    pRotatedPixmap ;    /* tile/stipple  rotated to align */
  75.     RegionPtr    pCompositeClip ;        /* free this based on freeCompClip
  76.                        flag rather than NULLness */
  77.     void     (* FillArea)() ;        /* fills regions; look at the code */
  78. /* ----- END OF "DO-NOT-CHANGE" REGION ----- */
  79.     ppcReducedRrop    colorRrop ;
  80.     short lastDrawableType ;    /* was last drawable a window or a pixmap? */
  81.     short lastDrawableDepth ;    /* was last drawable 1 or 8 planes? */
  82.     void (* cachedIGBlt)();    /* cached image glyph blit routine */
  83.     void (* cachedPGBlt)();    /* cached poly glyph blit routine */
  84.     pointer devPriv ;        /* Private area for device specific stuff */
  85.     } ppcPrivGC ;
  86. typedef ppcPrivGC *ppcPrivGCPtr ;
  87.