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

 

LIconPane



Overview:

LIconPane is a PowerPlant class that is used for drawing a single icon from an icon family.

Methods :

The methods in this class are:

 

LIconPane()  
~LIconPane()  
DrawSelf()  
SetIconID()  

Data Members:

The data members in this class are:

 

mIconID  
 

Operation:

Because this class uses the Mac OS icon-handling routines, an LIconPane object draws the member of the icon family that best fits the color settings and pixel depth of the current device.

Source files:

(Pane Classes)

LIconPane.h

LIconPane.cp

Ancestors:

LAttachable

LPane

LIconPane()

Purpose:

The constructors create objects from the passed-in parameters.

Access:

Public

Prototype:

LIconPane();

LIconPane( const SPaneInfo &inPaneInfo,
ResIDT inIconID );

LIconPane( LStream *inStream );
Parameters:

These constructors have the following parameters:

 

const
SPaneInfo&  
inPaneInfo  
The reference to the Superpane.  
ResIDT  
inIconID  
The resource ID for the icon.  
LStream*  
inStream  
The stream to construct an object from.  

~LIconPane()

Purpose:

The destructor destroys the object.

Access:

Virtual, Public

Prototype:

virtual ~LIconPane();

DrawSelf()

Purpose:

Draws the icon. This is an override of DrawSelf() in LPane.

Access:

Public

Prototype:

virtual void DrawSelf();
Parameters:

None

Return:

None

SetIconID()

Purpose:

Set the icon.

Access:

Public

Prototype:

void SetIconID( ResIDT inIconID );
Parameters:

These constructors have the following parameters:

 

ResIDT  
inIconID  
The resource ID for the icon.  

Return:

None

mIconID

Purpose:

Storage for the icon resource ID.

Access:

Protected

Prototype:

ResIDT mIconID;

 


[ 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