Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: gulutil.h
Link against: egul.lib

Class DrawUtils

DrawUtils

Support

Supported from 6.0

Description

Provides utilities for drawing text in a rectangle.

Defined in DrawUtils:
ClearBetweenRects(), DrawBetweenRects(), DrawText()


Member functions


DrawText()

static void DrawText (CGraphicsContext& aGc,const TDesC& aString, const TRect& aBox,TInt aBaseLineOffset,CGraphicsContext::TTextAlign aHoriz,TInt aMargin,const CFont* aFont);

Description

Draws text inside a box.

Parameters

CGraphicsContext& aGc

The graphics context.

constTDesC& aString

The text string to be drawn.

const TRect& aBox

The box to draw the text in.

const TInt& aBaseLineOffset

An offset from the top of the box to the text baseline.

CGraphicsContext::TTextAlign aHoriz

The horizontal text alignment.

const TInt aMargin

The margin around the text.

const CFont* aFont

The text font.


DrawBetweenRects()

static void DrawBetweenRects(CGraphicsContext& aGc,const TRect& aOuterRect,const TRect& aInnerRect);

Description

Draws and fills between two rectangles.

Parameters

CGraphicsContext& aGc

The graphics context.

const TRect& aOuterRect

The outer rectangle to be drawn.

const TRect& aInnerRect

The inner rectangle to be drawn.


ClearBetweenRects()

static void ClearBetweenRects(CGraphicsContext& aGc,const TRect& aOuterRect,const TRect& aInnerRect);

Description

Clears between two rectangles.

Parameters

CGraphicsContext& aGc

The graphics context.

const TRect& aOuterRect

The outer rectangle.

const TRect& aInnerRect

The inner rectangle.