home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / PowerPlant / LProgressIndicator & Friends / LAnimateCursor / LCursor.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-20  |  677 b   |  38 lines  |  [TEXT/CWIE]

  1. #pragma once
  2. /*
  3.     File:        LCursor.h
  4.     
  5.     Contains:    Base cursor class.
  6.                 LCursor framework.
  7.  
  8.     Copyright:    ©1995 Chris K. Thomas.  All Rights Reserved.
  9.  
  10.     Version:    2.1
  11. */
  12.  
  13. class LCursor
  14. {
  15.  
  16. protected:
  17.     Handle                mCursorHandle;
  18.     Boolean                mIsColor;
  19.     
  20.     //
  21.     // if the cursor is locked, it shouldn't be changed
  22.     // until unlocked.  This is unenforced protocol.
  23.     //
  24.     static Boolean        sCursorLocked;
  25.     static LCursor        *sCurrentCursor;
  26.     
  27. public:
  28.         LCursor(UInt16 inCursorID);
  29.         ~LCursor();
  30.         
  31.         virtual void    Set();
  32.         virtual void    Unset();
  33.         
  34.         static void        Lock() {sCursorLocked = true;}
  35.         static void        Unlock() {sCursorLocked = false;}
  36.         static Boolean    IsLocked() {return sCursorLocked;}
  37. };
  38.