1706f2543Smrg/* 2706f2543Smrg 3706f2543SmrgCopyright 1993 by Davor Matic 4706f2543Smrg 5706f2543SmrgPermission to use, copy, modify, distribute, and sell this software 6706f2543Smrgand its documentation for any purpose is hereby granted without fee, 7706f2543Smrgprovided that the above copyright notice appear in all copies and that 8706f2543Smrgboth that copyright notice and this permission notice appear in 9706f2543Smrgsupporting documentation. Davor Matic makes no representations about 10706f2543Smrgthe suitability of this software for any purpose. It is provided "as 11706f2543Smrgis" without express or implied warranty. 12706f2543Smrg 13706f2543Smrg*/ 14706f2543Smrg 15706f2543Smrg#ifndef XNESTPIXMAP_H 16706f2543Smrg#define XNESTPIXMAP_H 17706f2543Smrg 18706f2543Smrgextern DevPrivateKeyRec xnestPixmapPrivateKeyRec; 19706f2543Smrg#define xnestPixmapPrivateKey (&xnestPixmapPrivateKeyRec) 20706f2543Smrg 21706f2543Smrgtypedef struct { 22706f2543Smrg Pixmap pixmap; 23706f2543Smrg} xnestPrivPixmap; 24706f2543Smrg 25706f2543Smrg#define xnestPixmapPriv(pPixmap) ((xnestPrivPixmap *) \ 26706f2543Smrg dixLookupPrivate(&(pPixmap)->devPrivates, xnestPixmapPrivateKey)) 27706f2543Smrg 28706f2543Smrg#define xnestPixmap(pPixmap) (xnestPixmapPriv(pPixmap)->pixmap) 29706f2543Smrg 30706f2543Smrg#define xnestSharePixmap(pPixmap) ((pPixmap)->refcnt++) 31706f2543Smrg 32706f2543SmrgPixmapPtr xnestCreatePixmap(ScreenPtr pScreen, int width, int height, 33706f2543Smrg int depth, unsigned usage_hint); 34706f2543SmrgBool xnestDestroyPixmap(PixmapPtr pPixmap); 35706f2543SmrgRegionPtr xnestPixmapToRegion(PixmapPtr pPixmap); 36706f2543Smrg 37706f2543Smrg#endif /* XNESTPIXMAP_H */ 38