1 2 /*********************************************************** 3 Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts, 4 and the Massachusetts Institute of Technology, Cambridge, Massachusetts. 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 names of Digital or MIT not be 13 used in advertising or publicity pertaining to distribution of the 14 software without specific, written prior permission. 15 16 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 17 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 18 DIGITAL 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 /* $XConsortium: gc.h,v 1.51 91/07/09 15:58:13 rws Exp $ */ 26 27 #ifndef GC_H 28 #define GC_H 29 30 /* clientClipType field in GC */ 31 #define CT_NONE 0 32 #define CT_PIXMAP 1 33 #define CT_REGION 2 34 #define CT_UNSORTED 6 35 #define CT_YSORTED 10 36 #define CT_YXSORTED 14 37 #define CT_YXBANDED 18 38 39 #define GCQREASON_VALIDATE 1 40 #define GCQREASON_CHANGE 2 41 #define GCQREASON_COPY_SRC 3 42 #define GCQREASON_COPY_DST 4 43 #define GCQREASON_DESTROY 5 44 45 #define GC_CHANGE_SERIAL_BIT (((unsigned long)1)<<31) 46 #define GC_CALL_VALIDATE_BIT (1L<<30) 47 #define GCExtensionInterest (1L<<29) 48 49 #define DRAWABLE_SERIAL_BITS (~(GC_CHANGE_SERIAL_BIT)) 50 51 #define MAX_SERIAL_NUM (1L<<28) 52 #define NEXT_SERIAL_NUMBER ((++globalSerialNumber) > MAX_SERIAL_NUM ? \ 53 (globalSerialNumber = 1): globalSerialNumber) 54 55 typedef struct _GCInterest *GCInterestPtr; 56 typedef struct _GC *GCPtr; 57 extern void ValidateGC(); 58 extern int ChangeGC(); 59 extern GCPtr CreateGC(); 60 extern int CopyGC(); 61 extern int FreeGC(); 62 extern void SetGCMask(); 63 extern GCPtr GetScratchGC(); 64 extern void FreeScratchGC(); 65 #endif /* GC_H */ 66