void Parallelogram::draw_lines() const { /* if (fill_color().visibility()) { // fill fl_color(fill_color().as_int()); fl_paraf(point(0).tl,point(0).tr,point(0).bl,point(0).br); fl_color(color().as_int()); // reset color } if (color().visibility()) { // lines on top of fill fl_color(color().as_int()); fl_rect(point(0).tl,point(0).tr,point(0).bl,point(0).br); } */ if (fill_color().visibility()) { fl_color(fill_color().as_int()); fl_begin_complex_polygon(); for(int i=0; i<number_of_points(); ++i){ fl_vertex(point(i).x, point(i).y); } fl_end_complex_polygon(); fl_color(color().as_int()); // reset color } if (color().visibility()) Shape::draw_lines(); }
void Open_polyline::draw_lines() const { if (fill_color().visibility()) { fl_color(fill_color().as_int()); fl_begin_complex_polygon(); for(int i=0; i<number_of_points(); ++i){ fl_vertex(point(i).x, point(i).y); } fl_end_complex_polygon(); fl_color(color().as_int()); // reset color } if (color().visibility()) Shape::draw_lines(); }
FL_EXPORT_C(void,flc_end_complex_polygon)( ){ fl_end_complex_polygon(); }