!! barの構造体 typedef struct { gdouble x; /* x座標 */ gdouble y; /* y座標 */ gdouble width; /* 幅 */ gdouble height;  /* 高さ */ gboolean visible; /* 物体の表示・非表示 */ }rectangle; !! barの関数 void draw_canvas(cairo_t *cr); /* キャンバスを描く */ void create_rectangle(cairo_t *cr,rectangle rec); /* barを作る */