Lines Matching full:pgc

74 xnestCreateGC(GCPtr pGC)  in xnestCreateGC()  argument
76 pGC->funcs = &xnestFuncs; in xnestCreateGC()
77 pGC->ops = &xnestOps; in xnestCreateGC()
79 pGC->miTranslate = 1; in xnestCreateGC()
81 xnestGCPriv(pGC)->gc = XCreateGC(xnestDisplay, in xnestCreateGC()
82 xnestDefaultDrawables[pGC->depth], in xnestCreateGC()
89 xnestValidateGC(GCPtr pGC, unsigned long changes, DrawablePtr pDrawable) in xnestValidateGC() argument
94 xnestChangeGC(GCPtr pGC, unsigned long mask) in xnestChangeGC() argument
99 values.function = pGC->alu; in xnestChangeGC()
102 values.plane_mask = pGC->planemask; in xnestChangeGC()
105 values.foreground = xnestPixel(pGC->fgPixel); in xnestChangeGC()
108 values.background = xnestPixel(pGC->bgPixel); in xnestChangeGC()
111 values.line_width = pGC->lineWidth; in xnestChangeGC()
114 values.line_style = pGC->lineStyle; in xnestChangeGC()
117 values.cap_style = pGC->capStyle; in xnestChangeGC()
120 values.join_style = pGC->joinStyle; in xnestChangeGC()
123 values.fill_style = pGC->fillStyle; in xnestChangeGC()
126 values.fill_rule = pGC->fillRule; in xnestChangeGC()
129 if (pGC->tileIsPixel) in xnestChangeGC()
132 values.tile = xnestPixmap(pGC->tile.pixmap); in xnestChangeGC()
136 values.stipple = xnestPixmap(pGC->stipple); in xnestChangeGC()
139 values.ts_x_origin = pGC->patOrg.x; in xnestChangeGC()
142 values.ts_y_origin = pGC->patOrg.y; in xnestChangeGC()
145 values.font = xnestFont(pGC->font); in xnestChangeGC()
148 values.subwindow_mode = pGC->subWindowMode; in xnestChangeGC()
151 values.graphics_exposures = pGC->graphicsExposures; in xnestChangeGC()
154 values.clip_x_origin = pGC->clipOrg.x; in xnestChangeGC()
157 values.clip_y_origin = pGC->clipOrg.y; in xnestChangeGC()
163 values.dash_offset = pGC->dashOffset; in xnestChangeGC()
167 XSetDashes(xnestDisplay, xnestGC(pGC), in xnestChangeGC()
168 pGC->dashOffset, (char *) pGC->dash, pGC->numInDashList); in xnestChangeGC()
172 values.arc_mode = pGC->arcMode; in xnestChangeGC()
175 XChangeGC(xnestDisplay, xnestGC(pGC), mask, &values); in xnestChangeGC()
185 xnestDestroyGC(GCPtr pGC) in xnestDestroyGC() argument
187 XFreeGC(xnestDisplay, xnestGC(pGC)); in xnestDestroyGC()
191 xnestChangeClip(GCPtr pGC, int type, void *pValue, int nRects) in xnestChangeClip() argument
197 xnestDestroyClip(pGC); in xnestChangeClip()
201 XSetClipMask(xnestDisplay, xnestGC(pGC), None); in xnestChangeClip()
215 XSetClipRectangles(xnestDisplay, xnestGC(pGC), 0, 0, in xnestChangeClip()
221 XSetClipMask(xnestDisplay, xnestGC(pGC), in xnestChangeClip()
227 pGC->clientClip = (*pGC->pScreen->BitmapToRegion) ((PixmapPtr) pValue); in xnestChangeClip()
228 (*pGC->pScreen->DestroyPixmap) ((PixmapPtr) pValue); in xnestChangeClip()
229 pValue = pGC->clientClip; in xnestChangeClip()
233 XSetClipRectangles(xnestDisplay, xnestGC(pGC), in xnestChangeClip()
234 pGC->clipOrg.x, pGC->clipOrg.y, in xnestChangeClip()
239 XSetClipRectangles(xnestDisplay, xnestGC(pGC), in xnestChangeClip()
240 pGC->clipOrg.x, pGC->clipOrg.y, in xnestChangeClip()
245 XSetClipRectangles(xnestDisplay, xnestGC(pGC), in xnestChangeClip()
246 pGC->clipOrg.x, pGC->clipOrg.y, in xnestChangeClip()
251 XSetClipRectangles(xnestDisplay, xnestGC(pGC), in xnestChangeClip()
252 pGC->clipOrg.x, pGC->clipOrg.y, in xnestChangeClip()
266 pGC->clientClip = RegionFromRects(nRects, (xRectangle *) pValue, type); in xnestChangeClip()
268 pValue = pGC->clientClip; in xnestChangeClip()
272 pGC->clientClip = pValue; in xnestChangeClip()
276 xnestDestroyClip(GCPtr pGC) in xnestDestroyClip() argument
278 if (pGC->clientClip) { in xnestDestroyClip()
279 RegionDestroy(pGC->clientClip); in xnestDestroyClip()
280 XSetClipMask(xnestDisplay, xnestGC(pGC), None); in xnestDestroyClip()
281 pGC->clientClip = NULL; in xnestDestroyClip()