int InitSlicePartCircles(XParms xp, Parms p, int reps) { GenerateCircles(xp, p, True, False); XSetArcMode(xp->d, xp->bggc, ArcPieSlice); XSetArcMode(xp->d, xp->fggc, ArcPieSlice); return reps; }
int InitChordPartCircles(XParms xp, Parms p, int64_t reps) { GenerateCircles(xp, p, True, False); XSetArcMode(xp->d, xp->bggc, ArcChord); XSetArcMode(xp->d, xp->fggc, ArcChord); return reps; }
int InitDoubleDashedCircles(XParms xp, Parms p, int reps) { char dashes[2]; GenerateCircles(xp, p, False, True); /* Modify GCs to draw dashed */ XSetLineAttributes(xp->d, xp->ddbggc, 0, LineDoubleDash, CapButt, JoinMiter); XSetLineAttributes(xp->d, xp->ddfggc, 0, LineDoubleDash, CapButt, JoinMiter); dashes[0] = 3; dashes[1] = 2; XSetDashes(xp->d, xp->ddfggc, 0, dashes, 2); XSetDashes(xp->d, xp->ddbggc, 0, dashes, 2); return reps; }
static void GenerateWideCircles(XParms xp, Parms p, Bool partialArcs, Bool ddashed) { int size; GenerateCircles(xp, p, partialArcs, ddashed); size = p->special; if(ddashed) { XSetLineAttributes(xp->d, xp->ddbggc, (int) ((size + 9) / 10), LineSolid, CapRound, JoinRound); XSetLineAttributes(xp->d, xp->ddfggc, (int) ((size + 9) / 10), LineSolid, CapRound, JoinRound); } else { XSetLineAttributes(xp->d, xp->bggc, (int) ((size + 9) / 10), LineSolid, CapRound, JoinRound); XSetLineAttributes(xp->d, xp->fggc, (int) ((size + 9) / 10), LineSolid, CapRound, JoinRound); } }
int InitCircles(XParms xp, Parms p, int reps) { GenerateCircles(xp, p, False, False); return reps; }
int InitPartCircles(XParms xp, Parms p, int64_t reps) { GenerateCircles(xp, p, True, False); return reps; }