#include <mw/eikclb.h>
class CColumnListBoxItemDrawer : public CTextListItemDrawer |
Protected Attributes | |
---|---|
CArrayFix< SListProperties > * | iPropertyArray |
TInt | iSpare |
Public Member Functions | |
---|---|
CColumnListBoxItemDrawer() | |
CColumnListBoxItemDrawer(MTextListBoxModel *, const CFont *, CColumnListBoxData *) | |
~CColumnListBoxItemDrawer() | |
IMPORT_C void | ClearAllPropertiesL() |
IMPORT_C CColumnListBoxData * | ColumnData() |
virtual IMPORT_C void | DrawItemMark(TBool, TBool, const TPoint &) |
virtual IMPORT_C void | DrawItemText(TInt, const TRect &, TBool, TBool, TBool) |
virtual IMPORT_C TInt | ItemWidthInPixels(TInt) |
TSize | LafItemSize() |
virtual IMPORT_C TSize | MinimumCellSize() |
virtual IMPORT_C TListItemProperties | Properties(TInt) |
virtual IMPORT_C void | SetItemCellSize(const TSize &) |
IMPORT_C void | SetPropertiesL(TInt, TListItemProperties) |
Inherited Enumerations | |
---|---|
CListItemDrawer:TFlags | |
CListItemDrawer:TListItemAttribute |
Draws the contents of list box items.
IMPORT_C | CColumnListBoxItemDrawer | ( | MTextListBoxModel * | aTextListBoxModel, |
const CFont * | aFont, | |||
CColumnListBoxData * | aColumnData | |||
) |
C++ default constructor.
Initialises the list box item drawer with the specified model, font and data.
Parameter | Description |
---|---|
aTextListBoxModel | The model whose items will be drawn. This provides the item text that is drawn using DrawItemText(). |
aFont | The font in which the items will be drawn. |
aColumnData | The column list box data. This comprises: the column widths, gaps, fonts, aligments and bitmaps. |
IMPORT_C void | ClearAllPropertiesL | ( | ) |
Clears all properties from the CColumnListBoxItemDrawer.
IMPORT_C CColumnListBoxData * | ColumnData | ( | ) | const |
Gets a pointer to the column list box data as set during construction. Does not transfer ownership.
Returns a pointer to the column data. Does not imply transfer of ownership.
Returns: The column list box data.
IMPORT_C void | DrawItemMark | ( | TBool | aItemIsSelected, |
TBool | aViewIsDimmed, | |||
const TPoint & | aMarkPos | |||
) | const [virtual] |
Reimplemented from CListItemDrawer::DrawItemMark(TBool,TBool,const TPoint &)const
Not used in S60.
IMPORT_C void | DrawItemText | ( | TInt | aItemIndex, |
const TRect & | aItemTextRect, | |||
TBool | aItemIsCurrent, | |||
TBool | aViewIsEmphasized, | |||
TBool | aItemIsSelected | |||
) | const [virtual] |
Reimplemented from CTextListItemDrawer::DrawItemText(TInt,const TRect &,TBool,TBool,TBool)const
From CTextListItemDrawer.
Draw item text.
Parameter | Description |
---|---|
aItemIndex | Index of the item to draw. |
aItemTextRect | Area to draw into. |
aItemIsCurrent | ETrue if the item is current. |
aViewIsEmphasized | ETrue if the view is emphasised. |
aItemIsSelected | ETrue if the item is selected. |
Reimplemented from CTextListItemDrawer::ItemWidthInPixels(TInt)const
From CListItemDrawer.
Gets the width of the specified item.
Parameter | Description |
---|---|
aItemIndex | The index of the item whose width is to be returned. |
Returns: The width of the item. This is 0 in CListItemDrawer
IMPORT_C TSize | MinimumCellSize | ( | ) | const [virtual] |
Reimplemented from CTextListItemDrawer::MinimumCellSize()const
From CListItemDrawer.
Gets the minimum cell size.
Returns: The minimum size for a cell. This is TSize(0, 0) in CListItemDrawer.
IMPORT_C TListItemProperties | Properties | ( | TInt | aItemIndex | ) | const [virtual] |
Reimplemented from CListItemDrawer::Properties(TInt)const
Get properties for an item.
Parameter | Description |
---|---|
aItemIndex | Item's index for identifying. |
Returns: Wanted property set.
IMPORT_C void | SetItemCellSize | ( | const TSize & | aSizeInPixels | ) | [virtual] |
Reimplemented from CListItemDrawer::SetItemCellSize(const TSize &)
From CListItemDrawer.
Sets the item cell size.
The cell size is the on-screen size of the entire item, including its text and its item mark.
Parameter | Description |
---|---|
aSizeInPixels | New size for the item cell. |
IMPORT_C void | SetPropertiesL | ( | TInt | aItemIndex, |
TListItemProperties | aProperty | |||
) |
Set the property for an item with aItemIndex
Parameter | Description |
---|---|
aItemIndex | Item index |
aProperty | The new property setting The SetProperties is convinience 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 convinient to override the Properties() method. Further, use this only for small lists as it causes O(n) time if you need to set all properties. |