Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: gulutil.h
Link against: egul.lib

Class TFindWidthOfWidestTextItem

TFindWidthOfWidestTextItem

Support

Supported from 6.0

Description

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

This is the base class for various 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.

Defined in TFindWidthOfWidestTextItem:
GetFirstAndLastIndex(), GetTextItem(), MaximumWidthInPixels(), TFindWidthOfWidestTextItem()


Member functions


TFindWidthOfWidestTextItem()

TFindWidthOfWidestTextItem();

Description

Default constructor.


MaximumWidthInPixels()

TInt MaximumWidthInPixels(const CFont& aFont) const;

Description

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

Parameters

const CFont& aFont

The font.

Return value

TInt

The maximum width.


GetFirstAndLastIndex()

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

Description

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

Parameters

TInt& aFirstIndex

The first index.

TInt& aLastIndex

The last index.


GetTextItem()

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

Description

Gets the text item for the specfied index value.

Parameters

TDes& aText

The text.

TInt aIndex

The index.