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 TInt MaximumWidthInPixels (const CFont &)
Protected Member Functions
TFindWidthOfWidestTextItem ()
Private Member Functions
void GetFirstAndLastIndex ( TInt &, TInt &)
void GetTextItem ( TDes &, TInt )

Constructor & Destructor Documentation

TFindWidthOfWidestTextItem()

TFindWidthOfWidestTextItem ( ) [protected, inline]

Default constructor.

Member Functions Documentation

GetFirstAndLastIndex(TInt &, TInt &)

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

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

Parameters

TInt & aFirstIndex On return, the first index.
TInt & aLastIndex On return, the last index.

GetTextItem(TDes &, TInt)

void GetTextItem ( TDes & aText,
TInt aIndex
) const [private, pure virtual]

Gets the text item at the specfied index.

Parameters

TDes & aText On return, the indexed text item.
TInt aIndex The index.

MaximumWidthInPixels(const CFont &)

IMPORT_C TInt MaximumWidthInPixels ( const CFont & aFont ) const

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

Parameters

const CFont & aFont The font.