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

 

LPicture



Overview:

LPicture is a PowerPlant class that is used for displaying PICT resources.

Methods :

The methods in this class are:

 

LPicture()  
DrawSelf()  
GetPictureID()  
InitPicture()  
SetPictureID()  
 

Data Members:

The data members in this class are:

 

mPICTid  
 

Operation:

This is a simple extension of the LView class.

Source files:

Pane Classes)

LPicture.h

LPicture.cp

Ancestors:

LAttachable

LPane

LView

LPicture()

Purpose:

The constructors create objects from the passed-in parameters.

Access:

Public

Prototype:

LPicture();

LPicture( const LPicture &inOriginal );

LPicture( const SPaneInfo &inPaneInfo,
const SViewInfo &inViewInfo,
ResIDTinPICTid );

LPicture( LStream *inStream );

LPicture( ResIDT inPictureID );
Parameters:

The parameters for these constructors are:

 

const LPicture&  
inOriginal  
A reference to the picture to copy.  
const SPaneInfo&  
inPaneInfo  
The Superpane info.  
const SViewInfo&  
inViewInfo  
The Superview info.  
ResIDT  
inPICTid  
The resource ID for the PICT resource.  
LStream*  
inStream  
The stream to read from.  
ResIDT  
inPictureID  
The resource ID for the PICT resource.  

DrawSelf()

Purpose:

Draw the picture. This is an override of DrawSelf() in LPane.

GetPictureID()

Purpose:

Retrieve the picture ID.

Access:

Public

Prototype:

ResIDT GetPictureID() const;
Parameters:

None

Return:

A resource ID for the picture.

InitPicture()

Purpose:

Private Initializer. Assumes mPICTid is set.

Access:

Private

Prototype:

void InitPicture();
Parameters:

None

Return:

None

SetPictureID()

Purpose:

Set the PICT Resource ID associated with a picture. This method changes the size of the image to match the bounds of the PICT.

Access:

Public

Prototype:

void SetPictureID( ResIDT inPictureID );
Parameters:

This method has the following parameter:

 

ResIDT  
inPictureID  
The resource ID for the PICT resource.  

Return:

None

mPICTid

Purpose:

The picture resource ID.

Access:

Protected

Prototype:

ResIDT mPICTid;

 


[ 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