Location:
eiklbi.h
Link against:
eikcoctl.lib
CTextListItemDrawer
Supported from 6.0
Item drawer which can handle text. Used by CListBoxView
to draw individual list box items for a CEikTextListBox
.
|
Defined in CTextListItemDrawer
:
CTextListItemDrawer()
, ConstructL()
, DoDrawItemText()
, DrawActualItem()
, DrawItemText()
, Font()
, ItemWidthInPixels()
, MatcherCursorAscent()
, MatcherCursorRect()
, MinimumCellSize()
, ResetGc()
, SetCellWidthInChars()
, SetFont()
, SetGc()
, SetSearchStringL()
, iFont
, iModel
, ~CTextListItemDrawer()
Inherited from CBase
:
operator new()
Inherited from CListItemDrawer
:
BackColor()
,
ClearFlags()
,
ClearRect()
,
DimmedBackColor()
,
DimmedTextColor()
,
DrawFrame()
,
DrawItem()
,
DrawItemMark()
,
ECurrent
,
EDrawMarkSelection
,
EDrawOnlyActiveSelection
,
EEmphasized
,
EMask
,
EPaintedSelection
,
ESelected
,
Flags()
,
Gc()
,
HighlightedBackColor()
,
HighlightedTextColor()
,
MarkColor()
,
MarkColumn()
,
MarkGutter()
,
Properties()
,
SetBackColor()
,
SetData()
,
SetDimmedBackColor()
,
SetDimmedTextColor()
,
SetDrawMark()
,
SetFlags()
,
SetHighlightedBackColor()
,
SetHighlightedTextColor()
,
SetItemCellSize()
,
SetMarkColumnWidth()
,
SetMarkGutter()
,
SetSymbolFont()
,
SetTextColor()
,
SetVerticalInterItemGap()
,
SetViewRect()
,
SetupGc()
,
TFlags
,
TListItemAttribute
,
TextColor()
,
VerticalInterItemGap()
,
iBackColor
,
iData
,
iDimmedBackColor
,
iDimmedTextColor
,
iDrawMark
,
iGc
,
iHighlightedBackColor
,
iHighlightedTextColor
,
iItemCellSize
,
iMarkColor
,
iMarkColumnWidth
,
iMarkGutter
,
iTextColor
,
iViewRect
CTextListItemDrawer (MTextListBoxModel* aTextListBoxModel, const CFont* aFont);
Constructs a new text item drawer which draws the data of the specified model using the supplied font.
|
void ConstructL(const CFont* aFont);
Completes construction.
|
virtual void DrawActualItem(TInt aItemIndex, const TRect& aActualItemRect, TBool aItemIsCurrent, TBool aViewIsEmphasized, TBool, TBool aItemIsSelected) const;
Draws the actual item contents for the specified item in the specified rectangle.
|
protected: virtual void DrawItemText(TInt aItemIndex,const TRect& aItemTextRect,TBool aItemIsCurrent,TBool aViewIsEmphasized) const;
Draw item text.
This function is invoked by DrawActualItem()
to draw the item text.
|
protected: void DoDrawItemText (const TDesC& aDes, const TRect& aItemTextRect, TBool aItemIsCurrent, TBool aViewIsEmphasized, TBool aItemIsSelected, TInt aItemIndex) const;
Draws text.
This function is invoked by DrawItemText()
to draw a string into a rectangular area of iGc
.
|
void SetCellWidthInChars(TInt aNumOfCharsToDisplayInCell);
Sets the number of characters in a cell. This value affects only MinimumCellSize()
.
|
TInt ItemWidthInPixels(TInt aItemIndex) const;
Gets the width in pixels of the specified item.
|
|
virtual TSize MinimumCellSize() const;
Gets the minimum size of a cell based on the font and the number of characters in the cell.
|
virtual void SetGc(CWindowGc* aGc);
Sets the graphics context.
|
protected: virtual void ResetGc() const;
Resets the graphics context.
This function invokes CListItemDrawer::ResetGc()
and resets the pen colour to iTextColor
.
virtual TRect MatcherCursorRect(const TDesC& aMatchableText,TInt aCharPos,TInt aItemCellYPos) const;
Gets the position and size of the matcher cursor.
See also
CListItemDrawer::MatcherCursorRect()
|
|
TInt MatcherCursorAscent( TInt aCurrentItemIndex ) const;
Gets the ascent of the matcher cursor in pixels.
|
|
const CFont* Font(TInt aItemIndex) const;
Gets the font for the specified item.
|
|
void SetFont(const CFont* aFont);
Sets the font.
|
void SetSearchStringL(const TDesC* aSearchString);
Sets the search string.
|
MTextListBoxModel* iModel
Pointer to the text list model whose data should be drawn.