static void quit(
void *wid, gpointer data){
gtk_main_quit();
}
static void drawBoxes(void *wid, gpointer data){
cairo_set_source_rgb(cr, 1.,1.,1.);
cairo_set_line_width (cr, 3.);
cb.
draw(cr, 0., 0., 100., 100.,
false);
cb.
draw(cr, 120., 120., 100., 100.,
true);
cls>>cr;
cb.
draw(cr, 130., 130., 10., 10.,
false);
cairo_destroy(cr);
}
int main(
int argc,
char *argv[]){
gtk_init( &argc, &argv );
gtk_main();
}