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

 

LBorderAttachment



Overview:

LBorderAttachment is a PowerPlant class that is used for drawing a border within the Frame of a Pane. It is often used in conjunction with LPaintAttachment.

Methods :

The methods in this class are:

 

LBorderAttachment()  
ExecuteSelf()  

Data Members:

The data members in this class are:

 

mPenState  
mForeColor  
mBackColor  
 

Operation:

This Attachment is designed to respond to the msg_DraworPaint message. When you create this Attachment, you specify a PenState, foreground and background colors, and whether the host should also draw.

Source files:

(Utility Classes)

UAttachments.h

UAttachments.cp

See also:

LAttachment

LPaintAttachment

LPane

LBorderAttachment()

Purpose:

The constructor creates the object containing the passed-in parameters.

Access:

Public

Prototype:

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

LBorderAttachment( 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 LBorderAttachment object.  

ExecuteSelf()

Purpose:

This method draws a rectangular border. 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