home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / Blitting Class Library / Secure Macintosh Ports / SecureWindowRef.h < prev   
Encoding:
Text File  |  1995-10-20  |  1016 b   |  37 lines  |  [TEXT/CWIE]

  1. // SecureWindowRef.h, the SecureWindowRef class, useful for generating windows
  2. //    for those who do not use a framework to make windows for them.
  3.  
  4. // copyright © 1995, Macneil Shonle. All rights reserved.
  5.  
  6. #ifndef __SECUREWINDOWREF__
  7. #define __SECUREWINDOWREF__
  8.  
  9. #ifndef __SECUREMACPORT__
  10. #include <SecureMacPort.h>
  11. #endif
  12.  
  13. #include <exception>
  14.  
  15.         // class SecureWindowRef
  16. class SecureWindowRef : public SecureMacPort {
  17. public:
  18.     SecureWindowRef(const Rect& bounds, short theProc =documentProc, ConstStr255Param ="\p",
  19.         Boolean goAwayFlag =false, Boolean visible =true, WindowRef =WindowRef(-1L),
  20.         long refCon =0, void *wStorage =nil) throw(invalidargument);
  21.     virtual ~SecureWindowRef();
  22.     
  23.     Rect& portRect() const;
  24.     BitMapPtr bitMap() const;
  25.     short width() const;
  26.     short height() const;
  27.     CGrafPtr getMacPort() const;
  28.     GDHandle getMacGD() const;
  29.     virtual operator WindowRef() const;
  30.  
  31. private:
  32.     WindowRef window;
  33.     SecureWindowRef(const SecureWindowRef&);
  34.     SecureWindowRef& operator=(const SecureWindowRef&);
  35. };
  36.  
  37. #endif