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

 

LPaintAttachment



Overview:

LPaintAttachment is a PowerPlant class that is used for painting rectangles within the Frame of a Pane.

Methods :

The methods in this class are:

 

LPaintAttachment()  
ExecuteSelf()  

Data Members:

The data members in this class are:

 

mPenState  
mForeColor  
mBackColor  
 

Operation:

This objects allows you to paint a rectangle within the Frame of a Pane, for use only with the msg_DrawOrPrint message.

The rectangle is painted using the specified PenState settings and foreground and background RGBColor values. The painted rectangle is inset from the Frame by the size of the pnSize field of the PenState. This lets you use an LPaintAttachment in conjunction with a LBorderAttachment to draw a filled rectangle.

Source files:

(Utility Classes)

UAttachments.h

UAttachments.cp

See also:

LAttachment

LBorderAttachment

LPane

LPaintAttachment()

Purpose:

The constructors provide two ways to create LPaintAttachment objects. You may create a stream-based object or pass the itemized values for each required value.

Access:

Public

Prototype:

LPaintAttachment( PenState *inPenState,
RGBColor *inForeColor,
RGBColor *inBackColor,
Boolean inExecuteHost);

LPaintAttachment( LStream *inStream );
Parameters:

The parameters for these constructors are:

 

PenState*  
inPenState  
A pointer to a PenState.  
RGBColor*  
inForeColor  
A pointer to an RGBColor.  
RGBColor*  
inBackColor  
A pointer to an RGBColor.  
Boolean  
inExecuteHost  
A Boolean indicating the value to be set for mExecuteHost.  
LStream*  
inStream  
A pointer to a stream object that contains the information to create the LPaintAttachment object.  

ExecuteSelf()

Purpose:

This method paints a rectangle. This is an override of ExecuteSelf() in LAttachment.

mPenState

Purpose:

This member holds the pen information.

Access:

Protected

Prototype:

PenState mPenState;

mForeColor

Purpose:

This member holds the foreground color information.

Access:

Protected

Prototype:

RGBColor mForeColor;

mBackColor

Purpose:

This member holds the background color information.

Access:

Protected

Prototype:

RGBColor mBackColor;

 


[ 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