Back to Evolution Project page
#ifndef WINDOW_EVO #define WINDOW_EVO #include "Screen.h" //* It is a base class for windows inside the screens. class TWindow { public: CL_ClipRect* rect; //Coordinates of the window inside the screen virtual int Draw(); //* As the Show() method in the Screen class, Draw() draws the window //*Constructor and Destructor TWindow(TScreen* parent_new, int xx, int yy, int sizexx, int sizeyy) { parent = parent_new; rect = new CL_ClipRect(xx, yy, xx+sizexx, yy+sizeyy); } virtual ~TWindow(){ delete rect; } private: protected: TScreen* parent; //The parent screen }; #endif //WINDOW_EVO