home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1999 / MacHack 1999.toast / Papers / aSEPiA example source / Interfaces / IPluginDrawIntf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-06-25  |  612 b   |  24 lines  |  [TEXT/CWIE]

  1. /*---------------------------------------------------------------
  2.  
  3.     IPluginDrawIntf.h
  4.     
  5.     Interface for drawing in the screen.
  6.     
  7. ---------------------------------------------------------------*/
  8.  
  9. #ifndef IPluginDrawIntf_H
  10. #define IPluginDrawIntf_H
  11.  
  12.  
  13. const unsigned long IPluginDraw_ID     = 'PIdw';
  14.  
  15. class IPluginDrawIntf
  16. {
  17. public:
  18.     virtual void    DrawFrame()     = 0;    // called each idle for drawing
  19.     virtual void    Initialize()     = 0;    // called when window is opened
  20.     virtual void    SetDrawingRect( Rect    inRect )     = 0;    // called when window is opened
  21.     virtual void    Terminate()     = 0;    // called when window is close
  22. };
  23.  
  24. #endif