class CColumnListBoxItemDrawer : public CTextListItemDrawer |
Draws the contents of list box items.
5.0
Public Member Functions | |
---|---|
CColumnListBoxItemDrawer() | |
CColumnListBoxItemDrawer(MTextListBoxModel *, const CFont *, CColumnListBoxData *) | |
~CColumnListBoxItemDrawer() | |
IMPORT_C void | ClearAllPropertiesL() |
IMPORT_C CColumnListBoxData * | ColumnData() |
IMPORT_C void | DrawItemMark(TBool, TBool, const TPoint &) |
IMPORT_C void | DrawItemText(TInt, const TRect &, TBool, TBool, TBool) |
IMPORT_C TInt | ItemWidthInPixels(TInt) |
TSize | LafItemSize() |
IMPORT_C TSize | MinimumCellSize() |
IMPORT_C TListItemProperties | Properties(TInt) |
IMPORT_C void | SetItemCellSize(const TSize &) |
IMPORT_C void | SetPropertiesL(TInt, TListItemProperties) |
Protected Member Functions | |
---|---|
void | DrawCurrentItemRect(const TRect &) |
Private Member Functions | |
---|---|
IMPORT_C void | CColumnListBoxItemDrawer_Reserved() |
IMPORT_C TAny * | Reserved_1() |
Inherited Enumerations | |
---|---|
CListItemDrawer:TFlags | |
CListItemDrawer:TListItemAttribute |
Protected Attributes | |
---|---|
CArrayFix< SListProperties > * | iPropertyArray |
TInt | iSpare |
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.
MTextListBoxModel * aTextListBoxModel | The model whose items will be drawn. This provides the item text that is drawn using DrawItemText(). |
const CFont * aFont | The font in which the items will be drawn. |
CColumnListBoxData * 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.
The column list box data.
void | DrawCurrentItemRect | ( | const TRect & | aRect | ) | const [protected] |
Draw the item background.
Internal member, not intended for use.
const TRect & aRect | Drawing area. |
IMPORT_C void | DrawItemMark | ( | TBool | aItemIsSelected, |
TBool | aViewIsDimmed, | |||
const TPoint & | aMarkPos | |||
) | const [virtual] |
Not used in S60.
IMPORT_C void | DrawItemText | ( | TInt | aItemIndex, |
const TRect & | aItemTextRect, | |||
TBool | aItemIsCurrent, | |||
TBool | aViewIsEmphasized, | |||
TBool | aItemIsSelected | |||
) | const [virtual] |
From CTextListItemDrawer.
Draw item text.
IMPORT_C TInt | ItemWidthInPixels | ( | TInt | aItemIndex | ) | const [virtual] |
From CListItemDrawer.
Gets the width of the specified item.
The width of the item. This is 0 in CListItemDrawer
TInt aItemIndex | The index of the item whose width is to be returned. |
IMPORT_C TSize | MinimumCellSize | ( | ) | const [virtual] |
From CListItemDrawer.
Gets the minimum cell size.
The minimum size for a cell. This is TSize(0, 0) in CListItemDrawer.
IMPORT_C TListItemProperties | Properties | ( | TInt | aItemIndex | ) | const [virtual] |
Get properties for an item.
Wanted property set.
TInt aItemIndex | Item's index for identifying. |
IMPORT_C void | SetItemCellSize | ( | const TSize & | aSizeInPixels | ) | [virtual] |
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.
const TSize & aSizeInPixels | New size for the item cell. |
IMPORT_C void | SetPropertiesL | ( | TInt | aItemIndex, |
TListItemProperties | aProperty | |||
) |
Set the property for an item with aItemIndex
TInt aItemIndex | Item index |
TListItemProperties 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. |
CArrayFix< SListProperties > * | iPropertyArray | [protected] |
Array of properties.