DrawUtils Class Reference
| 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 *) |
Detailed Description
Provides static functions for drawing text in a rectangle.
Member Function Documentation
ClearBetweenRects ( CGraphicsContext &, const TRect &, const TRect & )
Clears between two rectangles, using a solid brush style and no pen.
| Parameter | Description | | aGc | The graphics context. |
| aOuterRect | The outer rectangle. |
| aInnerRect | The inner rectangle. |
DrawBetweenRects ( CGraphicsContext &, const TRect &, const TRect & )
Draws between two rectangles.
The pen and brush settings are used as specified in the graphics context.
| Parameter | Description | | aGc | The graphics context. |
| aOuterRect | The outer rectangle to be drawn. |
| aInnerRect | The inner rectangle to be drawn. |
DrawText ( CGraphicsContext &, const TDesC &, const TRect &, TInt, CGraphicsContext::TTextAlign, TInt, const CFont * )
Draws text inside a rectangle.
| Parameter | Description | | aGc | The graphics context. |
| aString | The text string to draw. |
| aBox | The rectangle to draw the text in. |
| aBaseLineOffset | An offset from the top of the box to the text baseline. |
| aHoriz | The horizontal text alignment. |
| aMargin | The margin around the text. |
| aFont | The font to use. |