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

 

UTextDrawing



Overview:

UTextDrawing is a PowerPlant class that is used for drawing text in LTextButton and LCaption objects.

Methods :

There is only one method in this class.

 

DrawWithJustification()  

Data Members:

There are no data members in this class.

Operation:

The method in this class provides the same functionality as the MacOS TextBox() routine, but does not erase the box before drawing. This improves performance. This means that you must erase the text before drawing if you change it dynamically.

Source files:

(Utility Classes)

UDrawingUtils.h

UDrawingUtils.cp

Ancestors:

None

See also:

LAttachment

LCaption

LTextButton

DrawWithJustification()

Purpose:

This method draws text in LTextButton and LCaption objects.

Access:

Static, Public

Prototype:

static void DrawWithJustification( Ptr inText,
SInt32 inLength,
const Rect &inRect,
SInt16 inJustification,
Boolean inFirstLeading = true)
Parameters:

The parameters for this method are:

 

 

Ptr  
inText  
A pointer to the text to draw.  
SInt32  
inLength  
The length of the text string.  
const Rect&  
inRect  
The Rect to draw into.  
SInt16  
inJustification  
The justification to use when drawing the text.  
Boolean  
inFirstLeading  
If true (the default), then leading will be added above the first line drawn.  

Return:

None


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

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