XSetArcMode

Syntax

XSetArcMode(display, gc, arc_mode)
      Display *display;
      GC gc;
      int arc_mode;

Arguments

display Specifies the connection to the X server.
gc Specifies the GC.
arc_mode Specifies the arc mode. You can pass ArcChord or ArcPieSlice.

Description

XSetArcMode() can generate BadAlloc , BadGC , and BadValue errors.

Diagnostics

BadAlloc The server failed to allocate the requested source or server memory.
BadGC A value for a GContext argument does not name a defined GContext.
BadValue Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error.

See also

XCopyArea(), XCreateGC(), XQueryBestSize(), XSetClipOrigin(), XSetFillStyle(), XSetFont(), XSetGraphicsExposures(), XSetLineAttributes(), XSetState(), XSetSubwindowMode(), XSetTile(), "Setting the Arc Mode, Subwindow Mode, and Graphics Exposure".
Christophe Tronche, ch@tronche.com