Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: 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:
GetFirstAndLastIndex(), GetTextItem(), MaximumWidthInPixels(), TFindWidthOfWidestTextItem()


Construction and destruction


TFindWidthOfWidestTextItem()

protected: inline TFindWidthOfWidestTextItem();

Description

Default constructor.

[Top]


Member functions


MaximumWidthInPixels()

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

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

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

Description

Gets the text item at the specfied index.

Parameters

TDes &aText

On return, the indexed text item.

TInt aIndex

The index.