#include #include "objects.h" main() { Am_Initialize(); // create a new window and set its size and position Window *win = new Window("my window"); win->setLeft(100); win->setTop(100); win->setWidth(300); win->setHeight(200); // create a blue line and add it to win Line *myline = new Line("my line"); myline->setX1(50); myline->setY1(20); myline->setX2(150); myline->setY2(50); myline->setLineStyle(Am_Blue); win->addObject(myline); // create a text object that displays the string "Hello World" and // add it to win. Text *mytext = new Text("my text"); mytext->setLeft(80); mytext->setTop(20); mytext->setText("Hello World"); win->addObject(mytext); Am_Main_Event_Loop(); Am_Cleanup(); }