UCursor is a PowerPlant class that wraps calls to the Toolbox
routine named SetTheCursor().
Methods :
The methods in this class are:
Data Members:
The data members in this class are:
Operation:
Given the ResIDT for a 'CURS' resource, set the cursor to that.
If the cursor is currently hidden, SetTheCursor() will not make it visible. There is no Apple-supported or recommend
way to determine cursor visibility.
You could refer to the "develop" Q&A section from the June 1997 issue of MacTech Magazine for information on how to determine cursor visibility, but use this at your own risk.
Source files:
See Also:
Purpose :
Retrieves the value of sCurrentID.
Access:
Prototype:
static ResIDT GetCurrentID() { return sCurrentID; }
Parameters:
Purpose :
Access:
Prototype:
static void InitTheCursor();Parameters:
Purpose :
Returns the value of sInAnimatedCursor.
Access:
Prototype:
static Boolean InAnimatedCursor() {
return sInAnimatedCursor; } Purpose:
Access:
Prototype:
static void SetArrow() { SetTheCursor(0); }
Parameters:
Purpose:
Access:
Prototype:
static void SetCurrentID(const ResIDT inCurrentID)
{ sCurrentID = inCurrentID; }
Parameters:
Purpose:
Access:
Prototype:
static void SetCross() { SetTheCursor(crossCursor); }
Parameters:
Return:
Purpose:
Sets the value of sInAnimatedCursor.
Access:
Prototype:
static void SetInAnimatedCursor(Boolean inInAnimated)
{ sInAnimatedCursor = inInAnimated; }
Parameters:
Return:
Purpose:
Access:
Prototype:
static void SetIBeam() { SetTheCursor(iBeamCursor); }
Parameters:
Return:
Purpose:
Sets the cursor to a plus sign (+).
Access:
Prototype:
static void SetPlus() { SetTheCursor(plusCursor); }
Parameters:
Return:
Purpose :
Access:
Prototype:
static void SetTheCursor(ResIDT inCursID);Parameters:
Purpose:
Access:
Prototype:
static void SetWatch() { SetTheCursor(watchCursor); }
Parameters:
Return:
Purpose:
Access:
Prototype:
static ResIDT sCurrentID;
Purpose:
Access:
Prototype:
static Boolean sInAnimatedCursor;