DrawUtils Class Reference

#include <mw/gulutil.h>

Link against: egul.lib

class DrawUtils
Public Member Functions
IMPORT_C voidClearBetweenRects(CGraphicsContext &, const TRect &, const TRect &)
IMPORT_C voidDrawBetweenRects(CGraphicsContext &, const TRect &, const TRect &)
IMPORT_C voidDrawText(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 & )

IMPORT_C voidClearBetweenRects(CGraphicsContext &aGc,
const TRect &aOuterRect,
const TRect &aInnerRect
)[static]

Clears between two rectangles, using a solid brush style and no pen.

Parameters
aGcThe graphics context.
aOuterRectThe outer rectangle.
aInnerRectThe inner rectangle.

DrawBetweenRects ( CGraphicsContext &, const TRect &, const TRect & )

IMPORT_C voidDrawBetweenRects(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.

Parameters
aGcThe graphics context.
aOuterRectThe outer rectangle to be drawn.
aInnerRectThe inner rectangle to be drawn.

DrawText ( CGraphicsContext &, const TDesC &, const TRect &, TInt, CGraphicsContext::TTextAlign, TInt, const CFont * )

IMPORT_C voidDrawText(CGraphicsContext &aGc,
const TDesC &aString,
const TRect &aBox,
TIntaBaseLineOffset,
CGraphicsContext::TTextAlignaHoriz,
TIntaMargin,
const CFont *aFont
)[static]

Draws text inside a rectangle.

Parameters
aGcThe graphics context.
aStringThe text string to draw.
aBoxThe rectangle to draw the text in.
aBaseLineOffsetAn offset from the top of the box to the text baseline.
aHorizThe horizontal text alignment.
aMarginThe margin around the text.
aFontThe font to use.