| class DrawUtils |
Provides static functions for drawing text in a rectangle.
| Public Member Functions | |
|---|---|
| IMPORT_C void | ClearBetweenRects ( CGraphicsContext &, const TRect &, const TRect &) |
| IMPORT_C void | DrawBetweenRects ( CGraphicsContext &, const TRect &, const TRect &) |
| IMPORT_C void | DrawText ( CGraphicsContext &, const TDesC &, const TRect &, TInt , CGraphicsContext::TTextAlign , TInt , const CFont *) |
| IMPORT_C void | ClearBetweenRects | ( | CGraphicsContext & | aGc, |
| const TRect & | aOuterRect, | |||
| const TRect & | aInnerRect | |||
| ) | [static] | |||
Clears between two rectangles, using a solid brush style and no pen.
| CGraphicsContext & aGc | The graphics context. |
| const TRect & aOuterRect | The outer rectangle. |
| const TRect & aInnerRect | The inner rectangle. |
| IMPORT_C void | DrawBetweenRects | ( | CGraphicsContext & | aGc, |
| const TRect & | aOuterRect, | |||
| const TRect & | aInnerRect | |||
| ) | [static] | |||
Draws between two rectangles.
The pen and brush settings are used as specified in the graphics context.
| CGraphicsContext & aGc | The graphics context. |
| const TRect & aOuterRect | The outer rectangle to be drawn. |
| const TRect & aInnerRect | The inner rectangle to be drawn. |
| IMPORT_C void | DrawText | ( | CGraphicsContext & | aGc, |
| const TDesC & | aString, | |||
| const TRect & | aBox, | |||
| TInt | aBaseLineOffset, | |||
| CGraphicsContext::TTextAlign | aHoriz, | |||
| TInt | aMargin, | |||
| const CFont * | aFont | |||
| ) | [static] | |||
Draws text inside a rectangle.
| CGraphicsContext & aGc | The graphics context. |
| const TDesC & aString | The text string to draw. |
| const TRect & aBox | The rectangle to draw the text in. |
| TInt aBaseLineOffset | An offset from the top of the box to the text baseline. |
| CGraphicsContext::TTextAlign aHoriz | The horizontal text alignment. |
| TInt aMargin | The margin around the text. |
| const CFont * aFont | The font to use. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.