XSetArcMode() XSetArcMode()
Name
XSetArcMode - set the arc mode in a graphics context.
Synopsis
XSetArcMode(display, gc, arc_mode)
Display *display;
GC gc;
int arc_mode;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
gc Specifies the graphics context.
arc_mode Specifies 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
XDefaultGC(), XChangeGC(), XCopyGC(), XCreateGC(), XFreeGC(), XGContextFromGC(), XSetBackground(), XSetClipMask(), XSetClipOrigin(), XSet-
ClipRectangles(), XSetDashes(), XSetFillRule(), XSetFillStyle(), XSetForeground(), XSetFunction(), XSetGraphicsExposures(), XSetLineAt-
tributes(), XSetPlaneMask(), XSetState(), XSetStipple(), XSetSubwindowMode(), XSetTSOrigin().
Xlib - Graphics Context XSetArcMode()