1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun 3*4882a593Smuzhiyun Copyright 1993 by Davor Matic 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun Permission to use, copy, modify, distribute, and sell this software 6*4882a593Smuzhiyun and its documentation for any purpose is hereby granted without fee, 7*4882a593Smuzhiyun provided that the above copyright notice appear in all copies and that 8*4882a593Smuzhiyun both that copyright notice and this permission notice appear in 9*4882a593Smuzhiyun supporting documentation. Davor Matic makes no representations about 10*4882a593Smuzhiyun the suitability of this software for any purpose. It is provided "as 11*4882a593Smuzhiyun is" without express or implied warranty. 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun */ 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun #ifndef XNESTPIXMAP_H 16*4882a593Smuzhiyun #define XNESTPIXMAP_H 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun extern DevPrivateKeyRec xnestPixmapPrivateKeyRec; 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun #define xnestPixmapPrivateKey (&xnestPixmapPrivateKeyRec) 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun typedef struct { 23*4882a593Smuzhiyun Pixmap pixmap; 24*4882a593Smuzhiyun } xnestPrivPixmap; 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun #define xnestPixmapPriv(pPixmap) ((xnestPrivPixmap *) \ 27*4882a593Smuzhiyun dixLookupPrivate(&(pPixmap)->devPrivates, xnestPixmapPrivateKey)) 28*4882a593Smuzhiyun 29*4882a593Smuzhiyun #define xnestPixmap(pPixmap) (xnestPixmapPriv(pPixmap)->pixmap) 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun #define xnestSharePixmap(pPixmap) ((pPixmap)->refcnt++) 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun PixmapPtr xnestCreatePixmap(ScreenPtr pScreen, int width, int height, 34*4882a593Smuzhiyun int depth, unsigned usage_hint); 35*4882a593Smuzhiyun Bool xnestDestroyPixmap(PixmapPtr pPixmap); 36*4882a593Smuzhiyun Bool xnestModifyPixmapHeader(PixmapPtr pPixmap, int width, int height, int depth, 37*4882a593Smuzhiyun int bitsPerPixel, int devKind, void *pPixData); 38*4882a593Smuzhiyun RegionPtr xnestPixmapToRegion(PixmapPtr pPixmap); 39*4882a593Smuzhiyun 40*4882a593Smuzhiyun #endif /* XNESTPIXMAP_H */ 41