105b261ecSmrg/*
205b261ecSmrg
305b261ecSmrgCopyright 1993 by Davor Matic
405b261ecSmrg
505b261ecSmrgPermission to use, copy, modify, distribute, and sell this software
605b261ecSmrgand its documentation for any purpose is hereby granted without fee,
705b261ecSmrgprovided that the above copyright notice appear in all copies and that
805b261ecSmrgboth that copyright notice and this permission notice appear in
905b261ecSmrgsupporting documentation.  Davor Matic makes no representations about
1005b261ecSmrgthe suitability of this software for any purpose.  It is provided "as
1105b261ecSmrgis" without express or implied warranty.
1205b261ecSmrg
1305b261ecSmrg*/
1405b261ecSmrg
1505b261ecSmrg#ifndef XNESTPIXMAP_H
1605b261ecSmrg#define XNESTPIXMAP_H
1705b261ecSmrg
186747b715Smrgextern DevPrivateKeyRec xnestPixmapPrivateKeyRec;
1935c4bbdfSmrg
206747b715Smrg#define xnestPixmapPrivateKey (&xnestPixmapPrivateKeyRec)
2105b261ecSmrg
2205b261ecSmrgtypedef struct {
2335c4bbdfSmrg    Pixmap pixmap;
2405b261ecSmrg} xnestPrivPixmap;
2505b261ecSmrg
264642e01fSmrg#define xnestPixmapPriv(pPixmap) ((xnestPrivPixmap *) \
274642e01fSmrg    dixLookupPrivate(&(pPixmap)->devPrivates, xnestPixmapPrivateKey))
2805b261ecSmrg
2905b261ecSmrg#define xnestPixmap(pPixmap) (xnestPixmapPriv(pPixmap)->pixmap)
3005b261ecSmrg
3105b261ecSmrg#define xnestSharePixmap(pPixmap) ((pPixmap)->refcnt++)
3205b261ecSmrg
3305b261ecSmrgPixmapPtr xnestCreatePixmap(ScreenPtr pScreen, int width, int height,
3435c4bbdfSmrg                            int depth, unsigned usage_hint);
3505b261ecSmrgBool xnestDestroyPixmap(PixmapPtr pPixmap);
3635c4bbdfSmrgBool xnestModifyPixmapHeader(PixmapPtr pPixmap, int width, int height, int depth,
3735c4bbdfSmrg                             int bitsPerPixel, int devKind, void *pPixData);
3805b261ecSmrgRegionPtr xnestPixmapToRegion(PixmapPtr pPixmap);
3905b261ecSmrg
4035c4bbdfSmrg#endif                          /* XNESTPIXMAP_H */
41