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 ) |
TFindWidthOfWidestTextItem | ( | ) | [protected, inline] |
Default constructor.
void | GetFirstAndLastIndex | ( | TInt & | aFirstIndex, |
TInt & | aLastIndex | |||
) | const [private, pure virtual] |
Gets the first and last index in the range of items.
void | GetTextItem | ( | TDes & | aText, |
TInt | aIndex | |||
) | const [private, pure virtual] |
Gets the text item at the specfied index.
IMPORT_C TInt | MaximumWidthInPixels | ( | const CFont & | aFont | ) | const |
Gets the width in pixels of the widest item in the range, using the specified font.
const CFont & aFont | The font. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.