XDrawArc(3X) — X Version 11
NAME
XDrawArc, XDrawArcs − draw arcs
SYNTAX
XDrawArc(display, d, gc, x, y, width, height, angle1, angle2)
Display ∗display;
Drawable d;
GC gc;
int x, y;
unsigned int width, height;
int angle1, angle2;
XDrawArcs(display, d, gc, arcs, narcs)
Display ∗display;
Drawable d;
GC gc;
XArc ∗arcs;
int narcs;
ARGUMENTS
angle1Specifies the start of the arc relative to the three-o-clock position from the center, in units of degrees ∗ 64.
angle2Specifies the path and extent of the arc relative to the start of the arc, in units of degrees ∗ 64.
arcsSpecifies a pointer to an array of arcs.
dSpecifies the drawable.
displaySpecifies the connection to the X server.
gcSpecifies the graphics context.
narcsSpecifies the number of arcs in the array.
width
heightSpecify the width and height.
x
ySpecify the x and y coordinates.
DESCRIPTION
XDrawArc draws a single circular or elliptical arc, while XDrawArcs draws multiple circular or elliptical arcs. .PN XDrawArc and .PN XDrawArcs can generate BadDrawable, BadGC, and BadMatch errors.
DIAGNOSTICS
BadDrawable
A value for a Drawable argument does not name a defined Window or Pixmap.
BadGC A value for a GContext argument does not name a defined GContext.
BadMatch An InputOnly window is used as a Drawable.
BadMatch Some argument or pair of arguments has the correct type and range but fails to match in some other way required by the request.
SEE ALSO
XDrawLine(3X), XDrawPoint(3X), XDrawRectangle(3X)
Xlib − C Language X Interface
1 March 1988