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.
Constructor & Destructor Documentation
TFindWidthOfWidestTextItem()
TFindWidthOfWidestTextItem | ( | ) | [protected, inline] |
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. |
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.