void bx_draw_arc ( bx_window  win,
int  x,
int  y,
unsigned  w,
unsigned  h,
double  angle,
double  dangle,
int  filled 
)

Draws an arc on the canvas of a window, that is a portion of an ellipse between two angles, and whose interior may be filled (to look as a pie slice) or left empty.

Parameters:
win the window owning the targeted canvas.
x,y the coordinates of the top left corner of the bounding box of the underlying ellipse of the arc.
w,h the width and height of the bounding box of the underlying ellipse of the arc.
angle the starting angle of the arc, expressed in degrees from the 3 o'clock position on the underlying ellipse of the arc.
dangle the angle between the starting angle and the ending angle of the arc expressed in degrees
filled whether theellipse is filled (non zero) or empty (zero)
Returns:
nothing
Remarks:
  • the coordinates are relative to the top-left corner of the canvas.
  • the y-axis is oriented downward.
  • positive angles indicate counterclockwise motion while negative ones indeicate clockwise motion.
  • if the underlying ellipse is not a circle, then the angles must be thought as skewed in the coordinate system of the bounding box of underlying ellipse, that is, an angle of 45*64 units will point toward the top right corner of bounding box of the underlying ellipse of the arc.
  • the updated canvas will be shown after the next call to bx_show_canvas().
  • the color is set with bx_set_color() or bx_set_rgb().
  • the line width is set with bx_set_line_width().


Generated on Fri Oct 10 00:01:00 2008 for bx-lib : the Basic X11 Library tuned for C beginners by  doxygen 1.5.6