//
// This G. Hagopian's solution to exercise 2 of Chapter 13
// "Programming -- Principles and Practice Using C++" by Bjarne Stroustrup
/**
Draw a box with rounded corners. Define a class Box, consisting of four lines and four arcs.0
*/

#include "Simple_window.h"    // if we want that "Next" button
#include "Graph.h"
#include "std_lib_facilities.h"

using namespace Graph_lib;

int main ()
try
{
    Point tl(100,100);    // top-left corner of our window
    Point t2(150,150);

    Simple_window win(tl,600,400,"Eounded Box");
    // screen coordinate tl for top-left corner
    // window size(600*400)
    // title: Rounded Box

    Box b1(t2,300,200);

    win.attach(b1);
    win.wait_for_button();
}
catch(exception& e) {
    // some error reporting
    return 1;
}
catch(...) {
    // some more error reporting
    return 2;
}
