summaryrefslogtreecommitdiff
path: root/hw/xscreen/xs-gc.h
blob: 97fefe45fde39b438c5f9f74c3f3ab24c658a065 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _XS_GC_INCL_ 
#define _XS_GC_INCL_ 

typedef struct {
  xcb_gcontext_t gc;
} XscreenPrivGC;

extern int xsGCPrivateIndex;

#define XS_GC_PRIV(pGC) \
  ((XscreenPrivGC *)((pGC)->devPrivates[xsGCPrivateIndex].ptr))

Bool xsCreateGC(GCPtr pGC);
void xsValidateGC(GCPtr pGC, unsigned long changes, DrawablePtr pDrawable);
void xsChangeGC(GCPtr pGC, unsigned long mask);
void xsCopyGC(GCPtr pGCSrc, unsigned long mask, GCPtr pGCDst);
void xsDestroyGC(GCPtr pGC);
void xsChangeClip(GCPtr pGC, int type, pointer pValue, int nRects);
void xsDestroyClip(GCPtr pGC);
void xsDestroyClipHelper(GCPtr pGC);
void xsCopyClip(GCPtr pGCDst, GCPtr pGCSrc);

#endif