API published in: S60 1st Ed
Link against: avkon.lib eikctl.lib eikcoctl.lib
Required Capabilities
None
#include <eiklbi.h>
Inherits CListItemDrawer.
Inherited by CColumnListBoxItemDrawer, and CFormattedCellListBoxItemDrawer.
Used by CListBoxView
to draw individual list box items for a CEikTextListBox
Public Member Functions |
|
IMPORT_C | CTextListItemDrawer () |
C++ default constructor. |
|
IMPORT_C | ~CTextListItemDrawer () |
Destructor. |
|
IMPORT_C | CTextListItemDrawer (MTextListBoxModel *aTextListBoxModel, const CFont *aFont) |
C++ default constructor. |
|
IMPORT_C void | ConstructL (const CFont *aFont) |
Handles 2nd phase construction. |
|
virtual IMPORT_C void | DrawActualItem (TInt aItemIndex, const TRect &aActualItemRect, TBool aItemIsCurrent, TBool aViewIsEmphasized, TBool aViewIsDimmed, TBool aItemIsSelected) const |
Draws the actual item contents for the specified item in the specified rectangle. |
|
virtual IMPORT_C TInt | ItemWidthInPixels (TInt aItemIndex) const |
Gets the width in pixels of the specified item. |
|
virtual IMPORT_C TSize | MinimumCellSize () const |
Gets the minimum size of a cell based on the font and the number of characters in the cell. |
|
virtual IMPORT_C void | SetGc (CWindowGc *aGc) |
Sets the graphics context. |
|
IMPORT_C void | SetCellWidthInChars (TInt aNumOfCharsToDisplayInCell) |
Sets the number of characters in a cell. |
|
virtual IMPORT_C TRect | MatcherCursorRect (const TDesC &aMatchableText, TInt aCharPos, TInt aItemCellYPos, TInt aCurrentItemIndex) const |
Gets the position and size of the matcher cursor. |
|
virtual IMPORT_C TInt | MatcherCursorAscent (TInt aCurrentItemIndex) const |
No Implementation. |
|
IMPORT_C void | SetFont (const CFont *aFont) |
Sets the font. |
|
IMPORT_C void | SetSearchStringL (const TDesC *aSearchString) |
Sets the search string. |
|
IMPORT_C const CFont * | Font (TInt aIndex) const |
Gets font for the specified item. |
|
void | SetItemMarkPosition (TInt aPos) |
Sets item mark position. |
|
TInt | ItemMarkPosition () const |
Gets item mark position. |
|
void | SetItemMarkReplacement (const TDesC &aReplacement) |
Sets the item mark replacement. |
|
TPtrC | ItemMarkReplacement () const |
Gets item mark replacement. |
|
void | SetItemMarkReverse (TBool aReverse) |
Sets item mark reverse to be active or not. |
|
TBool | ItemMarkReverse () const |
Check if the item has been marked reversed is active. |
|
Protected Member Functions |
|
virtual IMPORT_C void | DoDrawItemText (const TDesC &aDes, const TRect &aItemTextRect, TBool aItemIsCurrent, TBool aViewIsEmphasized, TBool aItemIsSelected, TInt aItemIndex) const |
Draws text. |
|
virtual IMPORT_C void | DrawItemText (TInt aItemIndex, const TRect &aItemTextRect, TBool aItemIsCurrent, TBool aViewIsEmphasized, TBool aItemIsSelected) const |
Draw item text. |
|
virtual IMPORT_C void | ResetGc () const |
Resets the graphics context. |
|
Protected Attributes |
|
MTextListBoxModel * | iModel |
List box model for the drawer. |
|
const CFont * | iFont |
Font used by the drawer. |
|
C++ default constructor. |
|
Destructor. |
|
C++ default constructor. Constructs a new text item drawer which draws the data of the specified model using the supplied font.
|
|
Handles 2nd phase construction.
|
|
Draws text.
This function is invoked by
|
|
Draws the actual item contents for the specified item in the specified rectangle.
Implements CListItemDrawer. |
|
Draw item text.
This function is invoked by
Reimplemented in CWordWrappedFormattedCellItemDrawer, CColumnListBoxItemDrawer, CFormattedCellListBoxItemDrawer, and CSettingsListBoxItemDrawer. |
|
Gets font for the specified item.
Reimplemented from CListItemDrawer. |
|
Gets item mark position.
|
|
Gets item mark replacement.
|
|
Check if the item has been marked reversed is active.
|
|
Gets the width in pixels of the specified item.
Reimplemented from CListItemDrawer. Reimplemented in CColumnListBoxItemDrawer, and CFormattedCellListBoxItemDrawer. |
|
No Implementation. Derived classes that deal with text and want to support incremental matching in listboxes need to redefine this function. Should be used to get the ascent of the matcher cursor in pixels.
Reimplemented from CListItemDrawer. |
|
Gets the position and size of the matcher cursor.
Reimplemented from CListItemDrawer. |
|
Gets the minimum size of a cell based on the font and the number of characters in the cell.
Reimplemented from CListItemDrawer. Reimplemented in CColumnListBoxItemDrawer, and CFormattedCellListBoxItemDrawer. |
|
Resets the graphics context.
This function invokes Reimplemented from CListItemDrawer. |
|
Sets the number of characters in a cell.
This value affects only
|
|
Sets the font.
|
|
Sets the graphics context.
Reimplemented from CListItemDrawer. |
|
Sets item mark position.
|
|
Sets the item mark replacement.
|
|
Sets item mark reverse to be active or not.
|
|
Sets the search string.
|
|
Font used by the drawer. |
|
List box model for the drawer. |