Logo Search packages:      
Sourcecode: ardour version File versions

void Gdk::Drawable::draw_arc ( const Glib::RefPtr< const GC > &  gc,
bool  filled,
int  x,
int  y,
int  width,
int  height,
int  angle1,
int  angle2 
) [inherited]

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.

gc A Gdk::GC.
filled true if the arc should be filled, producing a 'pie slice'.
x The x coordinate of the left edge of the bounding rectangle.
y The y coordinate of the top edge of the bounding rectangle.
width The width of the bounding rectangle.
height The height of the bounding rectangle.
angle1 The start angle of the arc, relative to the 3 o'clock position, counter-clockwise, in 1/64ths of a degree.
angle2 The end angle of the arc, relative to angle1 , in 1/64ths of a degree.

Definition at line 231 of file drawable.cc.

References Gdk::Drawable::gobj().

  gdk_draw_arc(gobj(), const_cast<GdkGC*>(Glib::unwrap<GC>(gc)), static_cast<int>(filled), x, y, width, height, angle1, angle2);

Generated by  Doxygen 1.6.0   Back to index