API published in: S60 1st Ed
Link against: avkon.lib eikctl.lib eikcoctl.lib
Required Capabilities
None
#include <eikfrlb.h>
Inherits CTextListItemDrawer.
Inherited by CDoubleLargeStyleItemDrawer, CSettingsListBoxItemDrawer, and CWordWrappedFormattedCellItemDrawer.
CFormattedCellListBoxItemDrawer
draws a single list item and manages list item properties.
Public Member Functions |
|
IMPORT_C | CFormattedCellListBoxItemDrawer (MTextListBoxModel *aTextListBoxModel, const CFont *aFont, CFormattedCellListBoxData *aFormattedCellData) |
C++ default constructor. |
|
IMPORT_C | ~CFormattedCellListBoxItemDrawer () |
Destructor. |
|
IMPORT_C CFormattedCellListBoxData * | FormattedCellData () const |
Gets the list layout drawer. |
|
IMPORT_C CFormattedCellListBoxData * | ColumnData () const |
Gets the list layout drawer. |
|
virtual IMPORT_C void | DrawEmptyItem (TInt aItemIndex, TPoint aItemRectPos, TBool aViewIsDimmed) const |
Draws an empty item to the list box. |
|
IMPORT_C void | SetTopItemIndex (TInt aTop) |
This function sets top item index. |
|
IMPORT_C void | ClearAllPropertiesL () |
Clears all properties. |
|
IMPORT_C void | SetPropertiesL (TInt aItemIndex, TListItemProperties properties) |
The SetProperties is convenience method for normal cases. |
|
virtual IMPORT_C TListItemProperties | Properties (TInt aItemIndex) const |
Function for getting properties of a certain list box item. |
|
TSize | LafItemSize () |
Gets list box item cell size. |
|
IMPORT_C void | DrawItemText (TInt aItemIndex, const TRect &aItemTextRect, TBool aItemIsCurrent, TBool aViewIsEmphasized, TBool aItemIsSelected) const |
From CTextListItemDrawer . |
|
IMPORT_C void | DrawItemMark (TBool aItemIsSelected, TBool aViewIsDimmed, const TPoint &aMarkPos) const |
From CTextListItemDrawer . |
|
IMPORT_C TSize | MinimumCellSize () const |
From CListItemDrawer . |
|
IMPORT_C TInt | ItemWidthInPixels (TInt aItemIndex) const |
From CListItemDrawer . |
|
IMPORT_C void | SetItemCellSize (const TSize &aSizeInPixels) |
From CListItemDrawer . |
|
Protected Member Functions |
|
void | DrawCurrentItemRect (const TRect &aRect) const |
Draws current item rectangle. |
|
void | WordWrapListItem (TPtr &aTarget, const TDesC &aItemString, TInt aFirstIndex, TInt aSecondIndex, TInt aItemIndex) const |
WordWrapListItem is used with CAknDouble* style listboxes. |
|
void | DrawBackgroundAndSeparatorLines (const TRect &aItemTextRect) const |
Protected Attributes |
|
TInt | iTopItemIndex |
Top item index. |
|
CArrayFix< SListProperties > * | iPropertyArray |
Array for list box item's properties. |
|
Data Structures |
|
struct | SListProperties |
List item index and color and style properties. More... |
|
C++ default constructor.
|
|
Destructor. |
|
Clears all properties. |
|
Gets the list layout drawer.
|
|
|
Draws current item rectangle.
|
|
Draws an empty item to the list box.
|
|
From Draws an item tick mark. A tick mark is used in multiple selection lists to indicate the item is selected.
This function is invoked by the framework to draw an item mark if This function does not need to be re-implemented for derived classes which do not draw item marks.
Reimplemented from CListItemDrawer. |
|
From Draw an item in a list box.
Reimplemented from CTextListItemDrawer. Reimplemented in CWordWrappedFormattedCellItemDrawer, and CSettingsListBoxItemDrawer. |
|
Gets the list layout drawer.
|
|
From Gets the width in pixels of the specified item.
Reimplemented from CTextListItemDrawer. |
|
Gets list box item cell size.
|
|
From Gets the minimum size of a cell based on the font and the number of characters in the cell.
Reimplemented from CTextListItemDrawer. |
|
Function for getting properties of a certain list box item.
Reimplemented from CListItemDrawer. |
|
From Sets the item cell size. The cell size is the on-screen size of the entire item, including its text and its item mark.
Reimplemented from CListItemDrawer. |
|
The SetProperties is convenience method for normal cases.
NOTE that it does NOT work correctly if you can insert/delete items from the list -- You need to update all properties if
any changes to the item text array happen! Often it is convenient to override the It has been implemented as sorted list of (index,Property) pairs.
If you're using find, aItemIndex for this method is the same as you give in
|
|
This function sets top item index.
|
|
If listbox does not have 2nd line defined, |
|
Array for list box item's properties. Own. |
|
Top item index. |