Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <GULUTIL.H>
Link against: egul.lib

Class TFindWidthOfWidestTextItem

class TFindWidthOfWidestTextItem;

Description

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.

Members

Defined in TFindWidthOfWidestTextItem:


Construction and destruction


TFindWidthOfWidestTextItem()

protected: inline TFindWidthOfWidestTextItem();

Description

Default constructor.

[Top]


Member functions


MaximumWidthInPixels(const CFont &)const

IMPORT_C TInt MaximumWidthInPixels(const CFont &aFont) const;

Description

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

Parameters

const CFont &aFont

The font.

Return value

TInt

The maximum width.


GetFirstAndLastIndex(TInt &,TInt &)const

private: virtual void GetFirstAndLastIndex(TInt &aFirstIndex, TInt &aLastIndex) const=0;

Description

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)const

private: virtual void GetTextItem(TDes &aText, TInt aIndex) const=0;

Description

Gets the text item at the specfied index.

Parameters

TDes16 &aText

On return, the indexed text item.

TInt aIndex

The index.