Drawable.drawArc

Warning gdk_draw_arc has been deprecated since version 2.22 and should not be used in newly-written code. Use cairo_arc() and cairo_fill() or cairo_stroke() instead. Note that arcs just like any drawing operation in Cairo are antialiased unless you call cairo_set_antialias(). Draws an arc or a filled 'pie slice'. The arc is defined by the bounding rectangle of the entire ellipse, and the start and end angles of the part of the ellipse to be drawn.

class Drawable
void
drawArc
(,
int filled
,
int x
,
int y
,
int width
,
int height
,
int angle1
,
int angle2
)

Parameters

gc GC

a GdkGC.

filled int

TRUE if the arc should be filled, producing a 'pie slice'.

x int

the x coordinate of the left edge of the bounding rectangle.

y int

the y coordinate of the top edge of the bounding rectangle.

width int

the width of the bounding rectangle.

height int

the height of the bounding rectangle.

angle1 int

the start angle of the arc, relative to the 3 o'clock position, counter-clockwise, in 1/64ths of a degree.

angle2 int

the end angle of the arc, relative to angle1, in 1/64ths of a degree.

Meta