00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef _DISPLAY_H
00011 #define _DISPLAY_H
00012
00013 #include "viewport.h"
00014 #include "scrnobj.h"
00015
00016 class Display : public Viewport
00017 {
00018 ScrnObjList list;
00019 public:
00020 Display (void) { }
00021 Display (Viewport* parent, int x1, int y1, int x2, int y2)
00022 : Viewport (parent, x1, y1, x2, y2) { }
00023 ~Display (void) { Erase (); }
00024
00025 virtual void Add (ScrnObj *a, int x, int y);
00026 virtual void Draw (void);
00027 virtual void Erase (void);
00028
00029 virtual Message Dispatch (Message&);
00030 };
00031
00032
00033 extern Display theDisplay;
00034
00035
00036 #endif
00037