Back to Evolution Project page
00001 #ifndef WINDOW_EVO 00002 #define WINDOW_EVO 00003 00004 #include "Screen.h" 00005 00006 //* It is a base class for windows inside the screens. 00007 class TWindow { 00008 public: 00009 CL_ClipRect* rect; //Coordinates of the window inside the screen 00010 virtual int Draw(); //* As the Show() method in the Screen class, Draw() draws the window 00011 //*Constructor and Destructor 00012 TWindow(TScreen* parent_new, int xx, int yy, int sizexx, int sizeyy) { 00013 parent = parent_new; 00014 rect = new CL_ClipRect(xx, yy, xx+sizexx, yy+sizeyy); 00015 } 00016 virtual ~TWindow(){ 00017 delete rect; 00018 } 00019 private: 00020 00021 protected: 00022 TScreen* parent; //The parent screen 00023 00024 }; 00025 00026 00027 #endif //WINDOW_EVO