Imported Upstream version 1.15.1
[deb_xorg-server.git] / hw / xnest / XNGC.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 XNESTGC_H
16#define XNESTGC_H
17
18/* This file uses the GC definition form Xlib.h as XlibGC. */
19
20typedef struct {
21 XlibGC gc;
22} xnestPrivGC;
23
24extern DevPrivateKeyRec xnestGCPrivateKeyRec;
25
26#define xnestGCPrivateKey (&xnestGCPrivateKeyRec)
27
28#define xnestGCPriv(pGC) ((xnestPrivGC *) \
29 dixLookupPrivate(&(pGC)->devPrivates, xnestGCPrivateKey))
30
31#define xnestGC(pGC) (xnestGCPriv(pGC)->gc)
32
33Bool xnestCreateGC(GCPtr pGC);
34void xnestValidateGC(GCPtr pGC, unsigned long changes, DrawablePtr pDrawable);
35void xnestChangeGC(GCPtr pGC, unsigned long mask);
36void xnestCopyGC(GCPtr pGCSrc, unsigned long mask, GCPtr pGCDst);
37void xnestDestroyGC(GCPtr pGC);
38void xnestChangeClip(GCPtr pGC, int type, pointer pValue, int nRects);
39void xnestDestroyClip(GCPtr pGC);
40void xnestDestroyClipHelper(GCPtr pGC);
41void xnestCopyClip(GCPtr pGCDst, GCPtr pGCSrc);
42
43#endif /* XNESTGC_H */