2003-11-14 17:48:57 +01:00
|
|
|
/*
|
|
|
|
|
|
|
|
Copyright 1993 by Davor Matic
|
|
|
|
|
|
|
|
Permission to use, copy, modify, distribute, and sell this software
|
|
|
|
and its documentation for any purpose is hereby granted without fee,
|
|
|
|
provided that the above copyright notice appear in all copies and that
|
|
|
|
both that copyright notice and this permission notice appear in
|
|
|
|
supporting documentation. Davor Matic makes no representations about
|
|
|
|
the suitability of this software for any purpose. It is provided "as
|
|
|
|
is" without express or implied warranty.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef XNESTPIXMAP_H
|
|
|
|
#define XNESTPIXMAP_H
|
|
|
|
|
2010-04-27 02:22:21 +02:00
|
|
|
extern DevPrivateKeyRec xnestPixmapPrivateKeyRec;
|
2012-03-21 20:55:09 +01:00
|
|
|
|
2010-04-27 02:22:21 +02:00
|
|
|
#define xnestPixmapPrivateKey (&xnestPixmapPrivateKeyRec)
|
2003-11-14 17:48:57 +01:00
|
|
|
|
|
|
|
typedef struct {
|
2012-03-21 20:55:09 +01:00
|
|
|
Pixmap pixmap;
|
2003-11-14 17:48:57 +01:00
|
|
|
} xnestPrivPixmap;
|
|
|
|
|
2007-08-28 15:28:25 +02:00
|
|
|
#define xnestPixmapPriv(pPixmap) ((xnestPrivPixmap *) \
|
|
|
|
dixLookupPrivate(&(pPixmap)->devPrivates, xnestPixmapPrivateKey))
|
2003-11-14 17:48:57 +01:00
|
|
|
|
|
|
|
#define xnestPixmap(pPixmap) (xnestPixmapPriv(pPixmap)->pixmap)
|
|
|
|
|
|
|
|
#define xnestSharePixmap(pPixmap) ((pPixmap)->refcnt++)
|
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
PixmapPtr xnestCreatePixmap(ScreenPtr pScreen, int width, int height,
|
2012-03-21 20:55:09 +01:00
|
|
|
int depth, unsigned usage_hint);
|
2003-11-25 20:29:01 +01:00
|
|
|
Bool xnestDestroyPixmap(PixmapPtr pPixmap);
|
|
|
|
RegionPtr xnestPixmapToRegion(PixmapPtr pPixmap);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2012-03-21 20:55:09 +01:00
|
|
|
#endif /* XNESTPIXMAP_H */
|