Esempio n. 1
0
File: do_arcs.c Progetto: aosm/X11
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;
}
Esempio n. 2
0
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;
}
Esempio n. 3
0
File: do_arcs.c Progetto: aosm/X11
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;
}
Esempio n. 4
0
File: do_arcs.c Progetto: aosm/X11
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);
    }
}
Esempio n. 5
0
File: do_arcs.c Progetto: aosm/X11
int 
InitCircles(XParms xp, Parms p, int reps)
{
    GenerateCircles(xp, p, False, False);
    return reps;
}
Esempio n. 6
0
int 
InitPartCircles(XParms xp, Parms p, int64_t reps)
{
    GenerateCircles(xp, p, True, False);
    return reps;
}