CColumnListBoxItemDrawer Class Reference

#include <mw/eikclb.h>

Link against: eikctl.lib

class CColumnListBoxItemDrawer : public CTextListItemDrawer

Inherits from

Nested Classes and Structures

Protected Attributes
CArrayFix< SListProperties > *iPropertyArray
TInt iSpare
Public Member Functions
CColumnListBoxItemDrawer()
CColumnListBoxItemDrawer(MTextListBoxModel *, const CFont *, CColumnListBoxData *)
~CColumnListBoxItemDrawer()
IMPORT_C voidClearAllPropertiesL()
IMPORT_C CColumnListBoxData *ColumnData()
virtual IMPORT_C voidDrawItemMark(TBool, TBool, const TPoint &)
virtual IMPORT_C voidDrawItemText(TInt, const TRect &, TBool, TBool, TBool)
virtual IMPORT_C TIntItemWidthInPixels(TInt)
TSize LafItemSize()
virtual IMPORT_C TSizeMinimumCellSize()
virtual IMPORT_C TListItemPropertiesProperties(TInt)
virtual IMPORT_C voidSetItemCellSize(const TSize &)
IMPORT_C voidSetPropertiesL(TInt, TListItemProperties)
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
Inherited Enumerations
CListItemDrawer:TFlags
CListItemDrawer:TListItemAttribute
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()

Detailed Description

Draws the contents of list box items.

Since
5.0

Member Attribute Documentation

iPropertyArray

CArrayFix< SListProperties > *iPropertyArray[protected]

Array of properties.

iSpare

TInt iSpare[protected]

Not used.

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.

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

~CColumnListBoxItemDrawer ( )

IMPORT_C~CColumnListBoxItemDrawer()

Destructor.

Member Function Documentation

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

Returns: The column list box data.

DrawItemMark ( TBool, TBool, const TPoint & )

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

Not used in S60.

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

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

From CTextListItemDrawer.

Draw item text.

ParameterDescription
aItemIndexIndex of the item to draw.
aItemTextRectArea to draw into.
aItemIsCurrentETrue if the item is current.
aViewIsEmphasizedETrue if the view is emphasised.
aItemIsSelectedETrue if the item is selected.

ItemWidthInPixels ( TInt )

IMPORT_C TIntItemWidthInPixels(TIntaItemIndex)const [virtual]

From CListItemDrawer.

Gets the width of the specified item.

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

Returns: The width of the item. This is 0 in CListItemDrawer

LafItemSize ( )

TSize LafItemSize()[inline]

Get Item Cell Size.

Returns: Cell size of an item.

MinimumCellSize ( )

IMPORT_C TSizeMinimumCellSize()const [virtual]

From CListItemDrawer.

Gets the minimum cell size.

Returns: The minimum size for a cell. This is TSize(0, 0) in CListItemDrawer.

Properties ( TInt )

IMPORT_C TListItemPropertiesProperties(TIntaItemIndex)const [virtual]

Get properties for an item.

ParameterDescription
aItemIndexItem's index for identifying.

Returns: Wanted property set.

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.

ParameterDescription
aSizeInPixelsNew size for the item cell.

SetPropertiesL ( TInt, TListItemProperties )

IMPORT_C voidSetPropertiesL(TIntaItemIndex,
TListItemPropertiesaProperty
)

Set the property for an item with aItemIndex

ParameterDescription
aItemIndexItem index
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.