void Lines_window::next() { int x = next_x.get_int(); int y = next_y.get_int(); lines.add(Point{x,y}); ostringstream os; os << '(' << x << ',' << y << ')'; xy_out.put(os.str()); redraw(); }
void Lines_window::next() { int x = next_x.get_int(); int y = next_y.get_int(); lines.add(Point{x, y}); // update current position readout: ostringstream ss; ss << '(' << x << ',' << y << ')'; xy_out.put(ss.str()); redraw(); }
void Lines_window::next() { int x = next_x.get_int(); int y = next_y.get_int(); lines.add(Point(x, y)); stringstream ss; ss << '(' << x << ',' << y << ')'; xy_out.put(ss.str()); redraw(); }
int get_int(In_box& ib) { int i = ib.get_int(); if (i == -999999) error("Invalid value in ",ib.label); return i; }
void hexagon_push(){ kind.hide(); shapes.push_back(new Regular_polygon(Point(inbox_x.get_int(), inbox_y.get_int()), radius, 6)); attach(shapes[shapes.size() - 1]); menu.show(); }
void circle_push(){ kind.hide(); shapes.push_back(new Circle(Point(inbox_x.get_int(), inbox_y.get_int()), radius)); attach(shapes[shapes.size()-1]); menu.show(); }