1 /* $XFree86: mit/server/include/pixmapstr.h,v 2.0 1993/07/24 07:15:21 dawes Exp $ */ 2 /* $XConsortium: pixmapstr.h,v 5.0 89/06/09 15:00:35 keith Exp $ */ 3 /*********************************************************** 4 Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts, 5 and the Massachusetts Institute of Technology, Cambridge, Massachusetts. 6 7 All Rights Reserved 8 9 Permission to use, copy, modify, and distribute this software and its 10 documentation for any purpose and without fee is hereby granted, 11 provided that the above copyright notice appear in all copies and that 12 both that copyright notice and this permission notice appear in 13 supporting documentation, and that the names of Digital or MIT not be 14 used in advertising or publicity pertaining to distribution of the 15 software without specific, written prior permission. 16 17 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 18 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 19 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 20 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 21 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 22 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 23 SOFTWARE. 24 25 ******************************************************************/ 26 27 #ifndef PIXMAPSTRUCT_H 28 #define PIXMAPSTRUCT_H 29 #include "pixmap.h" 30 #include "screenint.h" 31 #include "miscstruct.h" 32 33 typedef struct _Drawable { 34 unsigned char type; /* DRAWABLE_<type> */ 35 unsigned char class; /* specific to type */ 36 unsigned char depth; 37 unsigned char bitsPerPixel; 38 unsigned long id; /* resource id */ 39 short x; /* window: screen absolute, pixmap: 0 */ 40 short y; /* window: screen absolute, pixmap: 0 */ 41 unsigned short width; 42 unsigned short height; 43 ScreenPtr pScreen; 44 unsigned long serialNumber; 45 } DrawableRec; 46 47 /* 48 * PIXMAP -- device dependent 49 */ 50 51 typedef struct _Pixmap { 52 DrawableRec drawable; 53 int slot; /* Offscreen cache slot number */ 54 int cacheId; /* Pixmap id number */ 55 int refcnt; 56 int devKind; 57 DevUnion devPrivate; 58 } PixmapRec; 59 60 #endif /* PIXMAPSTRUCT_H */ 61