Imported Upstream version 1.15.1
[deb_xorg-server.git] / hw / xnest / XNPixmap.h
CommitLineData
a09e091a
JB
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 DevPrivateKeyRec xnestPixmapPrivateKeyRec;
19
20#define xnestPixmapPrivateKey (&xnestPixmapPrivateKeyRec)
21
22typedef struct {
23 Pixmap pixmap;
24} xnestPrivPixmap;
25
26#define xnestPixmapPriv(pPixmap) ((xnestPrivPixmap *) \
27 dixLookupPrivate(&(pPixmap)->devPrivates, xnestPixmapPrivateKey))
28
29#define xnestPixmap(pPixmap) (xnestPixmapPriv(pPixmap)->pixmap)
30
31#define xnestSharePixmap(pPixmap) ((pPixmap)->refcnt++)
32
33PixmapPtr xnestCreatePixmap(ScreenPtr pScreen, int width, int height,
34 int depth, unsigned usage_hint);
35Bool xnestDestroyPixmap(PixmapPtr pPixmap);
36Bool xnestModifyPixmapHeader(PixmapPtr pPixmap, int width, int height, int depth,
37 int bitsPerPixel, int devKind, pointer pPixData);
38RegionPtr xnestPixmapToRegion(PixmapPtr pPixmap);
39
40#endif /* XNESTPIXMAP_H */