home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Code Resources / 3D Buttons CDEF 1.0b4 / Source / 3D Buttons CDEF source / (3D Buttons CDEF.π) / LGBPushButton.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-04  |  1.2 KB  |  41 lines  |  [TEXT/MMCC]

  1. /**************************************************************************
  2.     LGBPushButton
  3.     
  4.     Public domain, by Zig Zichterman.
  5.     
  6.     This class implements 3D push buttons according to the guidelines
  7.     suggested in _develop_ 15. Some of the drawing code is taken from
  8.     the public domain source accompanying _develop_ 15.
  9. **************************************************************************/
  10. #pragma once
  11.  
  12. class LGBPushButton {
  13.     public :
  14.         static long    Main(short inVariation, ControlHandle ioControl,
  15.                 short inMsg, long ioParam);
  16.  
  17.     // ———— constructor —————————————————————————————————————————————
  18.     protected :
  19.         LGBPushButton(ControlRecord *inControl, Boolean inUseWFont);
  20.         ControlRecord    *mControl;
  21.         Boolean            mUseWFont;
  22.         
  23.     // ———— dispatch —————————————————————————————————————————————————
  24.     protected :
  25.         void    Draw(long inPartCode);
  26.         Boolean    Test(Point inHitPt);
  27.         void    CalcCRgn(RgnHandle ioRgn);
  28.         
  29.     // ———— Draw —————————————————————————————————————————————————————
  30.     protected :
  31.         void    DrawBW(void);
  32.         void    DrawColor(void);
  33.         void    DrawColorInactive(void);
  34.         void    DrawColorActive(void);
  35.         void    DrawName(Boolean inDimm1Bit = false);
  36.         void    DrawFrame(void);
  37.         void    EraseInsides(void);
  38.         void    Draw3DEffects(void);
  39. };
  40.  
  41.