StCursor is a PowerPlant class that temporarily changes the cursor to something else.
Methods :
The methods in this class are:
Data Members:
The data members in this class are:
Operation:
Upon entry, specify the ResIDT of the 'CURS' to change to. Upon exit, we either restore the old cursor or default to the arrow.
By default, StCursor will set to the watch cursor, and restore the original cursor.
Source files:
Purpose :
The default constructor initializes the object.
Access:
Prototype:
StCursor(ResIDT inCursID = watchCursor,
Boolean inRestoreOriginal = true);
StCursor(const StCursor &inOriginal);
StCursor& operator = (const StCursor &inOriginal);Parameters:
The cursor resource ID and whether to restore the cursor or not. The assignment operator and copy constructor require a reference to the original cursor object.
Purpose:
The destructor destroys the object.
Access:
Prototype:
virtual ~StCursor();Parameters:
Purpose:
The resource ID for restoring.
Access:
Prototype:
ResIDT mRestoreID;