[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

 

UCursor



Overview:

UCursor is a PowerPlant class that wraps calls to the Toolbox routine named SetTheCursor().

Methods :

The methods in this class are:

 

GetCurrentID()  
InitTheCursor()  
InAnimatedCursor()  
SetArrow()  
SetCurrentID()  
SetCross()  
SetInAnimatedCursor()  
SetIBeam()  
SetPlus()  
SetTheCursor()  
SetWatch()  
 

Data Members:

The data members in this class are:

 

sCurrentID  
sInAnimatedCursor  

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:

(Utility Classes)

UCursor.h

UCursor.cp

See Also:

StCursor

GetCurrentID()

Purpose :

Retrieves the value of sCurrentID.

Access:

Static, Public, Inline

Prototype:

static	ResIDT		GetCurrentID()	{ return sCurrentID; }
Parameters:

None

InitTheCursor()

Purpose :

Cursor Initialization.

Access:

Static, Public

Prototype:

static	void		InitTheCursor();
Parameters:

None

InAnimatedCursor()

Purpose :

Returns the value of sInAnimatedCursor.

Access:

Static, Public, Inline

Prototype:

static	Boolean		InAnimatedCursor()	{ 
   return sInAnimatedCursor; }
Parameters:

None

SetArrow()

Purpose:

Sets the cursor to an arrow.

Access:

Static, Public, Inline

Prototype:

static	void		SetArrow()		{ SetTheCursor(0); }
Parameters:

None

SetCurrentID()

Purpose:

Sets the cursor ID.

Access:

Static, Public, Inline

Prototype:

static	void SetCurrentID(const ResIDT inCurrentID)

	{ sCurrentID = inCurrentID; }
Parameters:

The resource ID to set.

SetCross()

Purpose:

Sets the cursor to a cross.

Access:

Static, Inline, Public

Prototype:

static	void		SetCross()		{ SetTheCursor(crossCursor); }
Parameters:

None

 

Return:

None

SetInAnimatedCursor()

Purpose:

Sets the value of sInAnimatedCursor.

Access:

Static, Inline, Public

Prototype:

static void SetInAnimatedCursor(Boolean inInAnimated)

{ sInAnimatedCursor = inInAnimated; }

Parameters:

Boolean value to set.

 

Return:

None

SetIBeam()

Purpose:

Sets the cursor to an I-beam.

Access:

Static, Inline, Public

Prototype:

static	void		SetIBeam()		{ SetTheCursor(iBeamCursor); }	
Parameters:

None

Return:

None

SetPlus()

Purpose:

Sets the cursor to a plus sign (+).

Access:

Static, Inline, Public

Prototype:

static	void		SetPlus()		{ SetTheCursor(plusCursor); }
Parameters:

None

 

Return:

None.

SetTheCursor()

Purpose :

Sets the cursor to a value.

Access:

Static, Public

Prototype:

static	void		SetTheCursor(ResIDT inCursID);
Parameters:

The cursor resource ID.

SetWatch()

Purpose:

Sets the cursor to a watch.

Access:

Static, Inline, Public

Prototype:

static	void		SetWatch()		{ SetTheCursor(watchCursor); }
Parameters:

None

 

Return:

None.

sCurrentID

Purpose:

Current resource ID.

Access:

Protected

Prototype:

static	ResIDT		sCurrentID;

sInAnimatedCursor

Purpose:

Cursor animation.

Access:

Protected

Prototype:

static	Boolean		sInAnimatedCursor;

 


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: July 21, 2000