home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK4 / SAMPLES / CPPTUTOR / OOD / WINMGR.H$ / WINMGR
Encoding:
Text File  |  1991-10-22  |  895 b   |  40 lines

  1. /********************************************************************
  2.  
  3.  FILE: WINMGR.H
  4.  
  5. ********************************************************************/
  6.  
  7.  
  8. #if !defined( _WINMGR_H_ )
  9.  
  10. #define _WINMGR_H_
  11.  
  12. #include <stdlib.h>
  13.  
  14. #include "interact.h"
  15. #include "list.h"
  16.  
  17. /********************************************************************
  18.  
  19.  WinMgr
  20.  
  21.  Defines a window manager that maintains one or more windows, keeps
  22.  track of the active window, and directs events to the windows.
  23.  
  24. ********************************************************************/
  25.  
  26. class WinMgr
  27. {
  28. public:
  29.    void handleEvent( const Event &action );
  30.    void addWindow( Win *newWindow );
  31.    void deleteWindow();
  32.    void repaint( Rect region );
  33. private:
  34.    void handleKey( const KbdEvent &key );
  35.    void handleMouse( const MouseEvent &action );
  36.    List winlist;
  37. };
  38.  
  39. #endif // _WINMGR_H_
  40.