The items may optionally be markable.
|
Public Types |
enum | TFlags { EDrawMarkSelection = 0x0001,
EPaintedSelection = 0x0002,
EDrawOnlyActiveSelection = 0x0004,
EDisableHighlight = 0x0008
} |
| Provides list box attributes for handling multiple selections. More...
|
enum | TListItemAttribute { ECurrent = 0x0001,
EEmphasized = 0x0002,
ESelected = 0x0004,
EMask = 0x0007
} |
| Provides attributes for list items. More...
|
Public Member Functions |
IMPORT_C | ~CListItemDrawer () |
| Destructor.
|
virtual IMPORT_C void | DrawItem (TInt aItemIndex, TPoint aItemRectPos, TBool aItemIsSelected, TBool aItemIsCurrent, TBool aViewIsEmphasized, TBool aViewIsDimmed) const |
| Draws the entire item.
|
virtual IMPORT_C void | ClearRect (const TRect &aRect) const |
| Clears the specified rectangle of this object's graphics context.
|
virtual IMPORT_C TInt | ItemWidthInPixels (TInt aItemIndex) const |
| Gets the width of the specified item.
|
virtual IMPORT_C TSize | MinimumCellSize () const |
| Gets the minimum cell size.
|
virtual IMPORT_C void | SetGc (CWindowGc *aGc) |
| Sets the graphics context which this object uses for drawing.
|
IMPORT_C CWindowGc * | Gc () const |
| Gets graphics context which is used for drawing.
|
virtual IMPORT_C void | SetMarkColumnWidth (TInt aWidthInPixels) |
| Sets the width of the column containing the mark.
|
virtual IMPORT_C void | SetMarkGutter (TInt aGapInPixels) |
| Sets the width of the gap between the column containing the lists item marks and the text column.
|
IMPORT_C TInt | MarkColumn () const |
| Gets mark column width.
|
IMPORT_C TInt | MarkGutter () const |
| Gets the width of the gap between the column containig the lists item marks and the text column.
|
virtual IMPORT_C void | SetItemCellSize (const TSize &aSizeInPixels) |
| Sets the item cell size.
|
IMPORT_C TSize | ItemCellSize () const |
| Gets current item cell size.
|
virtual IMPORT_C void | SetViewRect (const TRect &aRect) |
| Sets the viewing rectangle for this item drawer.
|
IMPORT_C void | SetDrawMark (TBool aDrawMark) |
| Sets whether item tick marks are drawn.
|
virtual IMPORT_C TRect | MatcherCursorRect (const TDesC &aMatchableText, TInt aCharPos, TInt aItemCellYPos, TInt aCurrentItemIndex) const |
| Gets a rectangle describing where the matcher cursor should be drawn.
|
virtual IMPORT_C TInt | MatcherCursorAscent (TInt aCurrentItemIndex) const |
| Gets the ascent of the matcher cursor.
|
virtual IMPORT_C void | DrawItemMark (TBool aItemIsSelected, TBool aViewIsDimmed, const TPoint &aMarkPos) const |
| Not Used in S60.
|
IMPORT_C void | SetSymbolFont (const CFont *aFont) |
| Sets symbol font for the item drawer.
|
IMPORT_C void | SetVerticalInterItemGap (TInt aGapInPixels) |
| Sets the vertical gap between items in the list.
|
IMPORT_C void | SetData (CListBoxData *aData) |
| Sets the font storage data for the item drawer and transfer ownership of that data.
|
IMPORT_C CFont * | Font (TInt aItemIndex) const |
| Gets the font for the specified item.
|
virtual IMPORT_C TListItemProperties | Properties (TInt aItemIndex) const |
| Gets the colour and style properties of the specified item.
|
IMPORT_C void | DrawFrame (CWindowGc &aGc, const TRect &aRect, TInt aFlags) const |
| Draws the frame.
|
void | SetTextColor (TRgb aColor) |
| Sets the colour used to draw non-highlighted text.
|
void | SetBackColor (TRgb aColor) |
| Sets the colour used to draw the background for non-highlighted items.
|
void | SetHighlightedTextColor (TRgb aColor) |
| Sets the colour used to draw highlighted text.
|
void | SetHighlightedBackColor (TRgb aColor) |
| Sets the colour used to draw the background for highlighted items.
|
void | SetDimmedTextColor (TRgb aColor) |
| Sets the colour used to draw dimmed text.
|
void | SetDimmedBackColor (TRgb aColor) |
| Sets the colour used to draw the background for dimmed items.
|
TRgb | TextColor () const |
| Gets the colour used to draw non-highlighted text.
|
TRgb | BackColor () const |
| Gets the colour used to draw the background for non-highlighted items.
|
TRgb | HighlightedTextColor () const |
| Gets the colour used to draw highlighted text.
|
TRgb | HighlightedBackColor () const |
| Gets the colour used to draw the background for highlighted items.
|
TRgb | DimmedTextColor () const |
| Gets the colour used to draw dimmed text.
|
TRgb | DimmedBackColor () const |
| Gets the colour used to draw the background for dimmed items.
|
TInt | Flags () const |
| Gets the item drawer flags.
|
IMPORT_C void | SetFlags (TInt aFlags) |
| Sets the item drawer flags.
|
IMPORT_C void | ClearFlags (TInt aFlags) |
| Sets the item drawer flags.
|
IMPORT_C MAknsControlContext * | SkinBackgroundControlContext () const |
| Access to skin contexts.
|
IMPORT_C void | SetSkinEnabledL (TBool aEnabled) |
| Ability to enable skins in listboxes.
|
Protected Member Functions |
IMPORT_C | CListItemDrawer () |
| C++ default constructor.
|
virtual void | DrawActualItem (TInt aItemIndex, const TRect &aActualItemRect, TBool aItemIsCurrent, TBool aViewIsEmphasized, TBool aViewIsDimmed, TBool aItemIsSelected) const =0 |
| Draws item text.
|
virtual IMPORT_C void | ResetGc () const |
| Resets the pen style, brush style, brush colour etc.
|
TRgb | MarkColor () const |
| Gets the colour used to draw tick marks.
|
IMPORT_C TInt | VerticalInterItemGap () const |
| Gets the vertical gap between items in pixels.
|
IMPORT_C void | SetupGc (TInt aItemIndex) const |
| Sets up the graphics context for the specified item.
|
Protected Attributes |
TSize | iItemCellSize |
| Item's cell size.
|
TInt | iMarkGutter |
| Mark gutter.
|
TInt | iMarkColumnWidth |
| Mark column width.
|
TRect | iViewRect |
| View area.
|
TBool | iDrawMark |
| Draw mark.
|
CWindowGc * | iGc |
| Graphics context controller.
|
TRgb | iTextColor |
| Color of text.
|
TRgb | iBackColor |
| Background color.
|
TRgb | iHighlightedTextColor |
| Color of highlighted text.
|
TRgb | iHighlightedBackColor |
| Highlighted background color.
|
TRgb | iDimmedTextColor |
| Color of dimmed text.
|
TRgb | iDimmedBackColor |
| Color of dimmed background.
|
TRgb | iMarkColor |
| Mark color.
|
CListBoxData * | iData |
| Data model.
|