Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

display.h

Go to the documentation of this file.
00001 /*************************************************************************
00002 *   FILE: display.h
00003 * AUTHOR: CAL
00004 * DATE: 25 April 1993
00005 * PURPOSE:
00006 *   A display is a viewport which can contain "screen objects",
00007 *   such as windows and buttons.
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;      // "root" display (physical screen)
00034 
00035 
00036 #endif
00037 

Generated on Sun Jul 6 23:07:15 2003 for Scotland Yard by doxygen1.2.15