static void quit(
void *wid, gpointer data){
gtk_main_quit();
}
static void drawCircles(void *wid, gpointer data){
cairo_set_source_rgb(cr, 1.,1.,1.);
cairo_set_line_width (cr, 3.);
cc.
draw(cr, 10., 10., 10.,
false);
cls>>cr;
cc.
draw(cr, 120., 120., 40.,
true);
cls="r3";
cls>>cr;
cc.
draw(cr, 120., 120., 10.,
false);
cairo_destroy(cr);
}
static void drawArcs(void *wid, gpointer data){
cairo_set_source_rgb(cr, 1.,1.,1.);
cairo_set_line_width (cr, 3.);
cc.
draw(cr, 120., 120., 100., 10./306.*2.*M_PI, 200./360.*2.*M_PI,
false);
cls>>cr;
cc.
draw(cr, 120., 120., 60., 220./306.*2.*M_PI, 360./360.*2.*M_PI,
false);
cairo_destroy(cr);
}
int main(
int argc,
char *argv[]){
gtk_init( &argc, &argv );
gtk_main();
}