home *** CD-ROM | disk | FTP | other *** search
/ Mac Expert 1995 Winter / Mac Expert - Winter 95.iso / Les fichiers / Communications / Divers / DinkClass ƒ / DC Scribble / DScribbleWind.h < prev    next >
Encoding:
Text File  |  1992-10-11  |  1.1 KB  |  51 lines  |  [TEXT/KAHL]

  1. /*
  2.     File:        DScribbleWind.h
  3.  
  4.     Written by:    Mark Gross
  5.  
  6.     Copyright:    © 1992 by Applied Technical Software, all rights reserved.
  7.     Use at your own risk.
  8.  
  9. */
  10.  
  11. // This is the class declaration of the DScribbleWindow
  12. // sub-class to ScrollWindow for the Scribble application
  13. #ifndef __DSCRIBBLEWIND__
  14. #define __DSCRIBBLEWIND__
  15.  
  16. #ifndef penPat
  17.     typedef enum {patBlack, patGray, patWhite} penPat;
  18. #endif
  19.  
  20. //class DScrollWindow;
  21. #include "DScrollWindow.h"
  22.  
  23. class DScribbleWind : public DScrollWindow
  24. {
  25.  
  26. public:
  27.     short            fPenSize;
  28.     penPat            fPenPat;
  29.     
  30.     DScribbleWind(void);
  31.     ~DScribbleWind(void);
  32.         // stub con/de structors... here just for style
  33.         
  34.         
  35.     virtual Boolean Init(DDocument *doc, Boolean hasColorWindows);
  36.         // Set up the scroll parameters for the window, and the above memebers
  37.         
  38.     virtual void    Draw(Rect *r);
  39.         // This method simply draws the pict in the DScribbleDoc
  40.         // member variabble DScribbleDoc::fPict
  41.  
  42. protected:
  43.  
  44.     virtual void    DoContent(EventRecord* theEvent);
  45.         // This member dose the drawing and marks the document 
  46.         // as needing saving.
  47.         
  48. };// end of class declaration
  49.  
  50.  
  51. #endif __DSCRIBBLEWIND__