Lines Matching refs:xp

30 GenerateSegments(XParms xp, Parms p, Bool ddashed)
44 pgc = xp->ddfggc;
46 pgc = xp->fggc;
160 XChangeGC(xp->d, xp->ddfggc, GCCapStyle, &gcv);
161 XChangeGC(xp->d, xp->ddbggc, GCCapStyle, &gcv);
163 XChangeGC(xp->d, xp->fggc, GCCapStyle, &gcv);
164 XChangeGC(xp->d, xp->bggc, GCCapStyle, &gcv);
169 InitSegments(XParms xp, Parms p, int64_t reps)
171 GenerateSegments(xp, p, False);
176 InitDashedSegments(XParms xp, Parms p, int64_t reps)
180 GenerateSegments(xp, p, False);
184 (xp->d, xp->bggc, 0, LineOnOffDash, CapNotLast, JoinMiter);
186 (xp->d, xp->fggc, 0, LineOnOffDash, CapNotLast, JoinMiter);
188 XSetDashes(xp->d, xp->fggc, 0, dashes, 2);
189 XSetDashes(xp->d, xp->bggc, 0, dashes, 2);
194 InitDoubleDashedSegments(XParms xp, Parms p, int64_t reps)
198 GenerateSegments(xp, p, True);
202 (xp->d, xp->ddbggc, 0, LineDoubleDash, CapNotLast, JoinMiter);
204 (xp->d, xp->ddfggc, 0, LineDoubleDash, CapNotLast, JoinMiter);
206 XSetDashes(xp->d, xp->ddfggc, 0, dashes, 2);
207 XSetDashes(xp->d, xp->ddbggc, 0, dashes, 2);
212 InitHorizSegmentsWidth(XParms xp, Parms p, int64_t reps, int width)
221 pgc = xp->fggc;
254 XChangeGC(xp->d, xp->fggc, GCCapStyle, &gcv);
255 XChangeGC(xp->d, xp->bggc, GCCapStyle, &gcv);
260 InitHorizSegments(XParms xp, Parms p, int64_t reps)
262 return InitHorizSegmentsWidth(xp, p, reps, 1);
266 InitWideHorizSegments(XParms xp, Parms p, int64_t reps)
270 (void)InitHorizSegmentsWidth(xp, p, reps, (int) ((size + 9) / 10));
272 XSetLineAttributes(xp->d, xp->bggc, (int) ((size + 9) / 10),
274 XSetLineAttributes(xp->d, xp->fggc, (int) ((size + 9) / 10),
281 InitVertSegmentsWidth(XParms xp, Parms p, int64_t reps, int width)
290 pgc = xp->fggc;
323 XChangeGC(xp->d, xp->fggc, GCCapStyle, &gcv);
324 XChangeGC(xp->d, xp->bggc, GCCapStyle, &gcv);
329 InitVertSegments(XParms xp, Parms p, int64_t reps)
331 return InitVertSegmentsWidth(xp, p, reps, 1);
335 InitWideVertSegments(XParms xp, Parms p, int64_t reps)
339 (void)InitVertSegmentsWidth(xp, p, reps, (size + 9) / 10);
341 XSetLineAttributes(xp->d, xp->bggc, (int) ((size + 9) / 10),
343 XSetLineAttributes(xp->d, xp->fggc, (int) ((size + 9) / 10),
350 DoSegments(XParms xp, Parms p, int64_t reps)
355 XDrawSegments(xp->d, xp->w, pgc, segments, p->objects);
356 if (pgc == xp->ddbggc)
357 pgc = xp->ddfggc;
358 else if(pgc == xp->ddfggc)
359 pgc = xp->ddbggc;
360 else if (pgc == xp->bggc)
361 pgc = xp->fggc;
363 pgc = xp->bggc;
369 EndSegments(XParms xp, Parms p)