Distributed Multihead X  1.16.4
dmxgc.c File Reference
#include "dmx.h"
#include "dmxsync.h"
#include "dmxgc.h"
#include "dmxgcops.h"
#include "dmxpixmap.h"
#include "dmxfont.h"
#include "gcstruct.h"
#include "pixmapstr.h"
#include "migc.h"

Functions

Bool dmxInitGC (ScreenPtr pScreen)
 
void dmxBECreateGC (ScreenPtr pScreen, GCPtr pGC)
 
Bool dmxCreateGC (GCPtr pGC)
 
void dmxValidateGC (GCPtr pGC, unsigned long changes, DrawablePtr pDrawable)
 
void dmxChangeGC (GCPtr pGC, unsigned long mask)
 
void dmxCopyGC (GCPtr pGCSrc, unsigned long changes, GCPtr pGCDst)
 
Bool dmxBEFreeGC (GCPtr pGC)
 
void dmxDestroyGC (GCPtr pGC)
 
void dmxChangeClip (GCPtr pGC, int type, void *pvalue, int nrects)
 
void dmxDestroyClip (GCPtr pGC)
 
void dmxCopyClip (GCPtr pGCDst, GCPtr pGCSrc)
 

Variables

static GCFuncs dmxGCFuncs
 
static GCOps dmxGCOps
 

Detailed Description

This file provides support for GCs.

Function Documentation

void dmxBECreateGC ( ScreenPtr  pScreen,
GCPtr  pGC 
)
Bool dmxBEFreeGC ( GCPtr  pGC)

Free the pGC on the back-end server.

References _DMXScreenInfo::beDisplay, DMX_GET_GC_PRIV, dmxScreens, and _dmxGCPriv::gc.

Referenced by dmxBEDestroyResources(), dmxBEDestroyScratchGCs(), and dmxDestroyGC().

void dmxChangeClip ( GCPtr  pGC,
int  type,
void *  pvalue,
int  nrects 
)
void dmxChangeGC ( GCPtr  pGC,
unsigned long  mask 
)
void dmxCopyClip ( GCPtr  pGCDst,
GCPtr  pGCSrc 
)

Copy a GC's clip rects.

References DMX_GC_FUNC_EPILOGUE, and DMX_GC_FUNC_PROLOGUE.

void dmxCopyGC ( GCPtr  pGCSrc,
unsigned long  changes,
GCPtr  pGCDst 
)

Copy pGCSrc to pGCDst on the back-end server associated with pGCSrc's screen.

References _DMXScreenInfo::beDisplay, DMX_GC_FUNC_EPILOGUE, DMX_GC_FUNC_PROLOGUE, DMX_GET_GC_PRIV, dmxScreens, and _dmxGCPriv::gc.

Bool dmxCreateGC ( GCPtr  pGC)

Create a graphics context on the back-end server associated /a pGC's screen.

References _DMXScreenInfo::beDisplay, DMX_GET_GC_PRIV, DMX_UNWRAP, DMX_WRAP, dmxBECreateGC(), dmxCreateGC(), dmxGCFuncs, dmxScreens, _dmxGCPriv::funcs, _dmxGCPriv::gc, _dmxGCPriv::msc, and _dmxGCPriv::ops.

Referenced by dmxCreateGC(), and dmxScreenInit().

void dmxDestroyClip ( GCPtr  pGC)
void dmxDestroyGC ( GCPtr  pGC)

Destroy the graphics context, pGC and free the corresponding GC on the back-end server.

References _DMXScreenInfo::beDisplay, DMX_GC_FUNC_EPILOGUE, DMX_GC_FUNC_PROLOGUE, dmxBEFreeGC(), and dmxScreens.

Bool dmxInitGC ( ScreenPtr  pScreen)

Initialize the GC on pScreen

References dmxGCPrivateKeyRec.

Referenced by dmxScreenInit().

void dmxValidateGC ( GCPtr  pGC,
unsigned long  changes,
DrawablePtr  pDrawable 
)

Validate a graphics context, pGC, locally in the DMX server and recompute the composite clip, if necessary.

References DMX_GC_FUNC_EPILOGUE, DMX_GC_FUNC_PROLOGUE, DMX_GET_GC_PRIV, and _dmxGCPriv::ops.

Variable Documentation

GCFuncs dmxGCFuncs
static
Initial value:
= {
}
void dmxChangeClip(GCPtr pGC, int type, void *pvalue, int nrects)
Definition: dmxgc.c:381
void dmxChangeGC(GCPtr pGC, unsigned long mask)
Definition: dmxgc.c:198
void dmxCopyClip(GCPtr pGCDst, GCPtr pGCSrc)
Definition: dmxgc.c:449
void dmxCopyGC(GCPtr pGCSrc, unsigned long changes, GCPtr pGCDst)
Definition: dmxgc.c:327
void dmxDestroyClip(GCPtr pGC)
Definition: dmxgc.c:431
void dmxValidateGC(GCPtr pGC, unsigned long changes, DrawablePtr pDrawable)
Definition: dmxgc.c:159
void dmxDestroyGC(GCPtr pGC)
Definition: dmxgc.c:364

Referenced by dmxCreateGC().

GCOps dmxGCOps
static
Initial value:
= {
}
int dmxPolyText8(DrawablePtr pDrawable, GCPtr pGC, int x, int y, int count, char *chars)
Definition: dmxgcops.c:399
void dmxFillSpans(DrawablePtr pDrawable, GCPtr pGC, int nInit, DDXPointPtr pptInit, int *pwidthInit, int fSorted)
Definition: dmxgcops.c:79
void dmxPolySegment(DrawablePtr pDrawable, GCPtr pGC, int nseg, xSegment *pSegs)
Definition: dmxgcops.c:271
void dmxPolyPoint(DrawablePtr pDrawable, GCPtr pGC, int mode, int npt, DDXPointPtr pptInit)
Definition: dmxgcops.c:227
void dmxPolyFillArc(DrawablePtr pDrawable, GCPtr pGC, int narcs, xArc *parcs)
Definition: dmxgcops.c:379
void dmxPushPixels(GCPtr pGC, PixmapPtr pBitMap, DrawablePtr pDst, int w, int h, int x, int y)
Definition: dmxgcops.c:527
void dmxPutImage(DrawablePtr pDrawable, GCPtr pGC, int depth, int x, int y, int w, int h, int leftPad, int format, char *pBits)
Definition: dmxgcops.c:98
void dmxImageText8(DrawablePtr pDrawable, GCPtr pGC, int x, int y, int count, char *chars)
Definition: dmxgcops.c:468
RegionPtr dmxCopyPlane(DrawablePtr pSrc, DrawablePtr pDst, GCPtr pGC, int srcx, int srcy, int width, int height, int dstx, int dsty, unsigned long bitPlane)
Definition: dmxgcops.c:199
void dmxPolyFillRect(DrawablePtr pDrawable, GCPtr pGC, int nrectFill, xRectangle *prectInit)
Definition: dmxgcops.c:357
void dmxFillPolygon(DrawablePtr pDrawable, GCPtr pGC, int shape, int mode, int count, DDXPointPtr pPts)
Definition: dmxgcops.c:335
void dmxSetSpans(DrawablePtr pDrawable, GCPtr pGC, char *psrc, DDXPointPtr ppt, int *pwidth, int nspans, int fSorted)
Definition: dmxgcops.c:87
void dmxImageGlyphBlt(DrawablePtr pDrawable, GCPtr pGC, int x, int y, unsigned int nglyph, CharInfoPtr *ppci, void *pglyphBase)
Definition: dmxgcops.c:509
void dmxPolylines(DrawablePtr pDrawable, GCPtr pGC, int mode, int npt, DDXPointPtr pptInit)
Definition: dmxgcops.c:249
void dmxPolyRectangle(DrawablePtr pDrawable, GCPtr pGC, int nrects, xRectangle *pRects)
Definition: dmxgcops.c:292
void dmxPolyArc(DrawablePtr pDrawable, GCPtr pGC, int narcs, xArc *parcs)
Definition: dmxgcops.c:315
void dmxImageText16(DrawablePtr pDrawable, GCPtr pGC, int x, int y, int count, unsigned short *chars)
Definition: dmxgcops.c:490
int dmxPolyText16(DrawablePtr pDrawable, GCPtr pGC, int x, int y, int count, unsigned short *chars)
Definition: dmxgcops.c:433
void dmxPolyGlyphBlt(DrawablePtr pDrawable, GCPtr pGC, int x, int y, unsigned int nglyph, CharInfoPtr *ppci, void *pglyphBase)
Definition: dmxgcops.c:518
RegionPtr dmxCopyArea(DrawablePtr pSrc, DrawablePtr pDst, GCPtr pGC, int srcx, int srcy, int w, int h, int dstx, int dsty)
Definition: dmxgcops.c:173

Generated on Tue Aug 18 2015 01:27:31 for Distributed Multihead X by doxygen 1.8.8