Lines Matching refs:xp

30 GenerateLines(XParms xp, Parms p, Bool ddashed)
45 pgc = xp->ddfggc;
47 pgc = xp->fggc;
164 InitLines(XParms xp, Parms p, int64_t reps)
166 GenerateLines(xp, p, False);
171 GenerateWideLines(XParms xp, Parms p, int64_t reps, Bool ddashed)
175 GenerateLines(xp, p, ddashed);
179 XSetLineAttributes(xp->d, xp->ddbggc, (int) ((size + 9) / 10),
181 XSetLineAttributes(xp->d, xp->ddfggc, (int) ((size + 9) / 10),
185 XSetLineAttributes(xp->d, xp->bggc, (int) ((size + 9) / 10),
187 XSetLineAttributes(xp->d, xp->fggc, (int) ((size + 9) / 10),
195 InitWideLines(XParms xp, Parms p, int64_t reps)
197 return GenerateWideLines(xp, p, reps, False);
201 InitDashedLines(XParms xp, Parms p, int64_t reps)
205 GenerateLines(xp, p, False);
208 XSetLineAttributes(xp->d, xp->bggc, 0, LineOnOffDash, CapButt, JoinMiter);
209 XSetLineAttributes(xp->d, xp->fggc, 0, LineOnOffDash, CapButt, JoinMiter);
211 XSetDashes(xp->d, xp->fggc, 0, dashes, 2);
212 XSetDashes(xp->d, xp->bggc, 0, dashes, 2);
217 InitWideDashedLines(XParms xp, Parms p, int64_t reps)
223 (void)GenerateWideLines(xp, p, reps, False);
230 XChangeGC(xp->d, xp->fggc, GCLineStyle, &gcv);
231 XChangeGC(xp->d, xp->bggc, GCLineStyle, &gcv);
232 XSetDashes(xp->d, xp->fggc, 0, dashes, 2);
233 XSetDashes(xp->d, xp->bggc, 0, dashes, 2);
238 InitDoubleDashedLines(XParms xp, Parms p, int64_t reps)
242 GenerateLines(xp, p, True);
245 XSetLineAttributes(xp->d, xp->ddbggc, 0, LineDoubleDash, CapButt, JoinMiter);
246 XSetLineAttributes(xp->d, xp->ddfggc, 0, LineDoubleDash, CapButt, JoinMiter);
248 XSetDashes(xp->d, xp->ddfggc, 0, dashes, 2);
249 XSetDashes(xp->d, xp->ddbggc, 0, dashes, 2);
254 InitWideDoubleDashedLines(XParms xp, Parms p, int64_t reps)
260 (void)GenerateWideLines(xp, p, reps, True);
267 XChangeGC(xp->d, xp->ddfggc, GCLineStyle, &gcv);
268 XChangeGC(xp->d, xp->ddbggc, GCLineStyle, &gcv);
269 XSetDashes(xp->d, xp->ddfggc, 0, dashes, 2);
270 XSetDashes(xp->d, xp->ddbggc, 0, dashes, 2);
275 DoLines(XParms xp, Parms p, int64_t reps)
279 XDrawLines(xp->d, xp->w, pgc, points, p->objects+1, CoordModeOrigin);
280 if (pgc == xp->ddbggc)
281 pgc = xp->ddfggc;
282 else if(pgc == xp->ddfggc)
283 pgc = xp->ddbggc;
284 else if (pgc == xp->bggc)
285 pgc = xp->fggc;
287 pgc = xp->bggc;
293 EndLines(XParms xp, Parms p)