void test_rects(Simple_window &win) { Rectangle r00 {Point{150, 100}, 200, 100}; Rectangle r11 {Point{50, 50}, Point{250, 150}}; Rectangle r12 {Point{50, 150}, Point{250, 250}}; Rectangle r21 {Point{250, 50}, 200, 100}; Rectangle r22 {Point{250, 150}, 200, 100}; r00.set_color(Color::invisible); r11.set_color(Color::invisible); r12.set_color(Color::invisible); r21.set_color(Color::invisible); //r22.set_color(Color::invisible); r00.set_fill_color(Color::yellow); r11.set_fill_color(Color::blue); r12.set_fill_color(Color::red); r21.set_fill_color(Color::green); r11.move(400, 0); r11.set_fill_color(Color::white); win.attach(r00); win.attach(r11); win.attach(r12); win.attach(r21); win.attach(r22); win.put_on_top(r00); win.wait_for_button(); }