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