home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / CColorBitMap / CColorBitMapPane.h < prev   
Encoding:
C/C++ Source or Header  |  1994-11-30  |  1.6 KB  |  73 lines  |  [TEXT/KAHL]

  1. /***************************************
  2.  "CColorBitMapPane.h"
  3.  
  4.  by John A. Love, III [Ph.D. student]
  5.  
  6.  using Symantec's "THINK C / C++", v 6/7
  7.  based on Symantec's "Art Class"
  8.  ***************************************/
  9.  
  10.  
  11.  
  12.  
  13. #pragma    once                        /* Include this file only once */
  14.  
  15.  
  16. #include <CBitMapPane.h>            /* Interface for its superclass */
  17.  
  18. CLASS CColorBitMap;                    /* Forward reference */
  19.  
  20.  
  21. /* ... for GDevices: */
  22. typedef enum    DeviceOption
  23. {
  24.     kDeepestScreen,
  25.     kLargestAreaScreen
  26.     
  27. }    DeviceOption;
  28.  
  29.  
  30. class CColorBitMapPane : public CBitMapPane
  31. {
  32. public:
  33.  
  34.                 CColorBitMap        *bitsUnderPane;
  35.                 DeviceOption        gdOption;
  36.                 short                currentDepth;
  37.         
  38.         
  39.                             /** Add Instance Methods here       **/
  40.                             /** because of my special parm(s): **/
  41.             void        IColorBitMapPane (CView *anEnclosure,
  42.                                           CBureaucrat *aSupervisor,
  43.                                           short aWidth, short aHeight,
  44.                                           short aHEncl, short aVEncl,
  45.                                           SizingOption aHSizing,
  46.                                           SizingOption aVSizing,
  47.                                           LongRect *aBounds,
  48.                                           CColorBitMap *aBitMap,
  49.                                           Boolean makePort);
  50.     virtual void        Dispose (void);
  51.     
  52.                             /** In order to NOT have to HLock  **/
  53.                             /** the CColorBitMap's "itsPixMap" **/
  54.                             /** I need to avoid all reference  **/
  55.                             /** to "macBitMap"                   **/
  56.     virtual void        Draw (Rect *area);
  57.     
  58.                             /** Another addition because **/
  59.                             /** "Switch-A-Roo" changes     **/
  60.                             /** color depth:             **/
  61.             Boolean        BitMapsNeedUpdating (void);
  62.     
  63.                             /** Thanks to Forrest Tanaka's       **/
  64.                             /** Macintosh Technical Note #120: **/
  65.             GDHandle    GetScreenDevice (Rect *globalRect);
  66.  
  67. };    /* CColorBitMapPane */
  68.  
  69.  
  70.  
  71.  
  72. /* end: "CColorBitMapPane.h" */
  73.