NAME
XSetArcMode − set the arc mode in a graphics context.
Synopsis
XSetArcMode(display, gc, arc_mode)
Display *display;
GC gc;
int arc_mode;
Arguments
displaySpecifies a connection to an X server; returned from XOpenDisplay().
gcSpecifies the graphics context.
arc_modeSpecifies the arc mode for the specified graphics context. Possible values are ArcChord or ArcPieSlice.
Description
XSetArcMode() sets the arc_mode component of a GC, which controls filling in the XFillArcs() function. ArcChord specifies that the area between the arc and a line segment joining the endpoints of the arc is filled. ArcPieSlice specifies that the area filled is delimited by the arc and two line segments connecting the ends of the arc to the center point of the rectangle defining the arc.
Errors
BadAlloc
BadGC
BadValue
See Also
DefaultGC(), XChangeGC(), XCopyGC(), XCreateGC(), XFreeGC(), XGContextFromGC(), XSetBackground(), XSetClipMask(), XSetClipOrigin(), XSetClipRectangles(), XSetDashes(), XSetFillRule(), XSetFillStyle(), XSetForeground(), XSetFunction(), XSetGraphicsExposures(), XSetLineAttributes(), XSetPlaneMask(), XSetState(), XSetStipple(), XSetSubwindowMode(), XSetTSOrigin().
Copyright O’Reilly & Assoc. —