CColumnListBoxItemDrawer Class Reference

class CColumnListBoxItemDrawer : public CTextListItemDrawer

Draws the contents of list box items.

Since
5.0

Inherits from

Nested Classes and Structures

Public Member Functions
CColumnListBoxItemDrawer()
CColumnListBoxItemDrawer(MTextListBoxModel *, const CFont *, CColumnListBoxData *)
~CColumnListBoxItemDrawer()
IMPORT_C voidClearAllPropertiesL()
IMPORT_C CColumnListBoxData *ColumnData()
IMPORT_C voidDrawItemMark(TBool, TBool, const TPoint &)
IMPORT_C voidDrawItemText(TInt, const TRect &, TBool, TBool, TBool)
IMPORT_C TIntItemWidthInPixels(TInt)
TSize LafItemSize()
IMPORT_C TSizeMinimumCellSize()
IMPORT_C TListItemPropertiesProperties(TInt)
IMPORT_C voidSetItemCellSize(const TSize &)
IMPORT_C voidSetPropertiesL(TInt, TListItemProperties)
Private Member Functions
IMPORT_C voidCColumnListBoxItemDrawer_Reserved()
IMPORT_C TAny *Reserved_1()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CListItemDrawer::BackColor()const
CListItemDrawer::CListItemDrawer()
CListItemDrawer::ClearFlags(TInt)
CListItemDrawer::ClearRect(const TRect &)const
CListItemDrawer::DimmedBackColor()const
CListItemDrawer::DimmedTextColor()const
CListItemDrawer::DrawFrame(CWindowGc &,const TRect &,TInt)const
CListItemDrawer::DrawItem(TInt,TPoint,TBool,TBool,TBool,TBool)const
CListItemDrawer::Flags()const
CListItemDrawer::Gc()const
CListItemDrawer::HighlightedBackColor()const
CListItemDrawer::HighlightedTextColor()const
CListItemDrawer::ItemCellSize()const
CListItemDrawer::MarkColor()const
CListItemDrawer::MarkColumn()const
CListItemDrawer::MarkGutter()const
CListItemDrawer::SetBackColor(TRgb)
CListItemDrawer::SetData(CListBoxData *)
CListItemDrawer::SetDimmedBackColor(TRgb)
CListItemDrawer::SetDimmedTextColor(TRgb)
CListItemDrawer::SetDrawMark(TBool)
CListItemDrawer::SetFlags(TInt)
CListItemDrawer::SetHighlightedBackColor(TRgb)
CListItemDrawer::SetHighlightedTextColor(TRgb)
CListItemDrawer::SetMarkColumnWidth(TInt)
CListItemDrawer::SetMarkGutter(TInt)
CListItemDrawer::SetSkinEnabledL(TBool)
CListItemDrawer::SetSymbolFont(const CFont *)
CListItemDrawer::SetTextColor(TRgb)
CListItemDrawer::SetVerticalInterItemGap(TInt)
CListItemDrawer::SetViewRect(const TRect &)
CListItemDrawer::SetupGc(TInt)const
CListItemDrawer::SkinBackgroundControlContext()const
CListItemDrawer::TextColor()const
CListItemDrawer::VerticalInterItemGap()const
CListItemDrawer::~CListItemDrawer()
CTextListItemDrawer::CTextListItemDrawer()
CTextListItemDrawer::CTextListItemDrawer(MTextListBoxModel *,const CFont *)
CTextListItemDrawer::ConstructL(const CFont *)
CTextListItemDrawer::DoDrawItemText(const TDesC &,const TRect &,TBool,TBool,TBool,TInt)const
CTextListItemDrawer::DrawActualItem(TInt,const TRect &,TBool,TBool,TBool,TBool)const
CTextListItemDrawer::Font(TInt)const
CTextListItemDrawer::ItemMarkPosition()const
CTextListItemDrawer::ItemMarkReplacement()const
CTextListItemDrawer::ItemMarkReverse()const
CTextListItemDrawer::MatcherCursorAscent(TInt)const
CTextListItemDrawer::MatcherCursorRect(const TDesC &,TInt,TInt,TInt)const
CTextListItemDrawer::ResetGc()const
CTextListItemDrawer::SetCellWidthInChars(TInt)
CTextListItemDrawer::SetFont(const CFont *)
CTextListItemDrawer::SetGc(CWindowGc *)
CTextListItemDrawer::SetItemMarkPosition(TInt)
CTextListItemDrawer::SetItemMarkReplacement(const TDesC &)
CTextListItemDrawer::SetItemMarkReverse(TBool)
CTextListItemDrawer::SetSearchStringL(const TDesC *)
CTextListItemDrawer::~CTextListItemDrawer()
Inherited Enumerations
CListItemDrawer:TFlags
CListItemDrawer:TListItemAttribute
Protected Attributes
CArrayFix< SListProperties > *iPropertyArray
TInt iSpare
Inherited Attributes
CListItemDrawer::iBackColor
CListItemDrawer::iData
CListItemDrawer::iDimmedBackColor
CListItemDrawer::iDimmedTextColor
CListItemDrawer::iDrawMark
CListItemDrawer::iGc
CListItemDrawer::iHighlightedBackColor
CListItemDrawer::iHighlightedTextColor
CListItemDrawer::iItemCellSize
CListItemDrawer::iMarkColor
CListItemDrawer::iMarkColumnWidth
CListItemDrawer::iMarkGutter
CListItemDrawer::iTextColor
CListItemDrawer::iViewRect
CTextListItemDrawer::iFont
CTextListItemDrawer::iModel

Constructor & Destructor Documentation

CColumnListBoxItemDrawer()

IMPORT_CCColumnListBoxItemDrawer()

CColumnListBoxItemDrawer(MTextListBoxModel *, const CFont *, CColumnListBoxData *)

IMPORT_CCColumnListBoxItemDrawer(MTextListBoxModel *aTextListBoxModel,
const CFont *aFont,
CColumnListBoxData *aColumnData
)

C++ default constructor.

Initialises the list box item drawer with the specified model, font and data.

Parameters

MTextListBoxModel * aTextListBoxModelThe model whose items will be drawn. This provides the item text that is drawn using DrawItemText().
const CFont * aFontThe font in which the items will be drawn.
CColumnListBoxData * aColumnDataThe column list box data. This comprises: the column widths, gaps, fonts, aligments and bitmaps.

~CColumnListBoxItemDrawer()

IMPORT_C~CColumnListBoxItemDrawer()

Destructor.

Member Functions Documentation

CColumnListBoxItemDrawer_Reserved()

IMPORT_C voidCColumnListBoxItemDrawer_Reserved()[private]

ClearAllPropertiesL()

IMPORT_C voidClearAllPropertiesL()

Clears all properties from the CColumnListBoxItemDrawer.

ColumnData()

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.

Since
ER5U

DrawItemMark(TBool, TBool, const TPoint &)

IMPORT_C voidDrawItemMark(TBoolaItemIsSelected,
TBoolaViewIsDimmed,
const TPoint &aMarkPos
)const [virtual]

Not used in S60.

Parameters

TBool aItemIsSelected
TBool aViewIsDimmed
const TPoint & aMarkPos

DrawItemText(TInt, const TRect &, TBool, TBool, TBool)

IMPORT_C voidDrawItemText(TIntaItemIndex,
const TRect &aItemTextRect,
TBoolaItemIsCurrent,
TBoolaViewIsEmphasized,
TBoolaItemIsSelected
)const [virtual]

From CTextListItemDrawer.

Draw item text.

Parameters

TInt aItemIndexIndex of the item to draw.
const TRect & aItemTextRectArea to draw into.
TBool aItemIsCurrentETrue if the item is current.
TBool aViewIsEmphasizedETrue if the view is emphasised.
TBool aItemIsSelectedETrue if the item is selected.

ItemWidthInPixels(TInt)

IMPORT_C TIntItemWidthInPixels(TIntaItemIndex)const [virtual]

From CListItemDrawer.

Gets the width of the specified item.

Parameters

TInt aItemIndexThe index of the item whose width is to be returned.

LafItemSize()

TSize LafItemSize()[inline]

Get Item Cell Size.

MinimumCellSize()

IMPORT_C TSizeMinimumCellSize()const [virtual]

From CListItemDrawer.

Gets the minimum cell size.

Properties(TInt)

IMPORT_C TListItemPropertiesProperties(TIntaItemIndex)const [virtual]

Get properties for an item.

Parameters

TInt aItemIndexItem's index for identifying.

Reserved_1()

IMPORT_C TAny *Reserved_1()[private, virtual]

SetItemCellSize(const TSize &)

IMPORT_C voidSetItemCellSize(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.

Parameters

const TSize & aSizeInPixelsNew size for the item cell.

SetPropertiesL(TInt, TListItemProperties)

IMPORT_C voidSetPropertiesL(TIntaItemIndex,
TListItemPropertiesaProperty
)

Set the property for an item with aItemIndex

Parameters

TInt aItemIndexItem index
TListItemProperties aPropertyThe 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.

Member Data Documentation

CArrayFix< SListProperties > * iPropertyArray

CArrayFix< SListProperties > *iPropertyArray[protected]

Array of properties.

TInt iSpare

TInt iSpare[protected]

Not used.