TFindWidthOfWidestTextItem Class Reference

class TFindWidthOfWidestTextItem

Finds the width in pixels of the widest item in a range of indexed text items.

This is the base class for several classes used to get the maximum width for date and time components.

Derived classes should override the pure virtual methods to supply an appropriate range of items.

Public Member Functions
IMPORT_C TIntMaximumWidthInPixels(const CFont &)
Protected Member Functions
TFindWidthOfWidestTextItem()
Private Member Functions
voidGetFirstAndLastIndex(TInt &, TInt &)
voidGetTextItem(TDes &, TInt)

Constructor & Destructor Documentation

TFindWidthOfWidestTextItem()

TFindWidthOfWidestTextItem()[protected, inline]

Default constructor.

Member Functions Documentation

GetFirstAndLastIndex(TInt &, TInt &)

voidGetFirstAndLastIndex(TInt &aFirstIndex,
TInt &aLastIndex
)const [private, pure virtual]

Gets the first and last index in the range of items.

Parameters

TInt & aFirstIndexOn return, the first index.
TInt & aLastIndexOn return, the last index.

GetTextItem(TDes &, TInt)

voidGetTextItem(TDes &aText,
TIntaIndex
)const [private, pure virtual]

Gets the text item at the specfied index.

Parameters

TDes & aTextOn return, the indexed text item.
TInt aIndexThe index.

MaximumWidthInPixels(const CFont &)

IMPORT_C TIntMaximumWidthInPixels(const CFont &aFont)const

Gets the width in pixels of the widest item in the range, using the specified font.

Parameters

const CFont & aFontThe font.