home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Genie / Projects / Pedestal / Source / Includes / PedView.hh < prev    next >
Encoding:
Text File  |  2000-06-24  |  1.0 KB  |  52 lines

  1. /*    ==========
  2.  *    PedView.hh
  3.  *    ==========
  4.  *    
  5.  *    Implemented by PedView.cc
  6.  */
  7.  
  8. #pragma once
  9.  
  10. #include <Events.h>
  11. #include <Types.h>
  12.  
  13. #include "PedObject.hh"
  14.  
  15. class PedWindow;
  16.  
  17. class PedView : public PedObject {
  18. public:
  19.     PedView();
  20.     virtual ~PedView();
  21.     
  22.     virtual bool IsInExistence() {return false;}
  23.     virtual void GetFrame(Rect &outFrame) = 0;
  24.     virtual PedWindow &Window() = 0;
  25.     virtual void GetWindowToFrameOffset(Point &outOffset);
  26.     virtual void GetWindowToLocalOffset(Point &outOffset);
  27.     
  28.     virtual void Focus();
  29.     virtual void Activate();
  30.     virtual void Deactivate();
  31.     virtual void Refresh();
  32.     virtual void DrawContent();
  33.     virtual void Resize(short inWidth, short inHeight);
  34.     
  35.     // Event processing
  36.     virtual void DispatchNullEvent(EventRecord &inEvent);
  37.     virtual void DispatchClickEvent(EventRecord &inEvent);
  38.     virtual void DispatchKey(EventRecord &inEvent);
  39.     
  40. protected:
  41. };
  42.  
  43. #if 0
  44. class UPedNullView : public PedView {
  45. public:
  46.     UPedNullView() : PedView(*this) {}
  47.     virtual void Focus() {}
  48. };
  49.  
  50. extern UPedNullView gNullView;
  51. #endif
  52.