home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1999 / MacHack 1999.toast / The Hacks / OutOfContextMenus / Source / CPigLatinBehavior.h < prev    next >
Encoding:
Text File  |  1999-06-25  |  1023 b   |  46 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    CPigLatinBehavior.h                 ©1999 Eric Traut
  3. // ===========================================================================
  4.  
  5. #pragma once
  6.  
  7. #include "COffscreenBehavior.h"
  8.  
  9.  
  10. class CPigLatinBehavior : public COffscreenBehavior
  11. {
  12.     public:
  13.         CPigLatinBehavior(CShadowWindow &        inShadowWindow);
  14.  
  15.         virtual Boolean
  16.         RenderToGWorld(    StGWorldLocker &        inBackingLocker,
  17.                         StGWorldLocker &        inRenderingLocker);
  18.  
  19.         virtual void
  20.         DoQDText(                CGrafPtr        inOrigPort,
  21.                                 short             inByteCount, 
  22.                                 Ptr             inTextBuf, 
  23.                                 Point             inNumer, 
  24.                                 Point             inDenom);
  25.  
  26.         virtual SInt16
  27.         DoQDTxMeas(                CGrafPtr        inOrigPort,
  28.                                 SInt16             inByteCount, 
  29.                                 Ptr             inTextAddr, 
  30.                                 Point *            inNumer, 
  31.                                 Point *            inDenom, 
  32.                                 FontInfo *        inInfo);
  33.  
  34.  
  35.         void
  36.         ConvertTextToPigLatin(    const char *        inTextBuf,
  37.                                 UInt32                inByteCount,
  38.                                 Handle                outPigLatin);
  39.  
  40.         Boolean
  41.         ShouldEnableRestoreMenu(void);
  42. };
  43.  
  44.  
  45.  
  46.