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(); }
void pressed(int x, int y) { ostringstream oss; oss << '(' << x << ", " << y << ")"; outbox.put(oss.str()); }