API published in: S60 1st Ed
Link against: avkon.lib eikctl.lib eikcoctl.lib
Required Capabilities
None
#include <eiklbi.h>
Inherited by CTextListItemDrawer.
CListItemDrawer
class is the base class for the list box item drawers which handle drawing of the contents of list box items.
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. |
|
Provides list box attributes for handling multiple selections.
These flags can be set using the
|
|
Provides attributes for list items.
|
|
Destructor. |
|
C++ default constructor. |
|
Gets the colour used to draw the background for non-highlighted items.
|
|
Sets the item drawer flags.
|
|
Clears the specified rectangle of this object's graphics context.
|
|
Gets the colour used to draw the background for dimmed items.
|
|
Gets the colour used to draw dimmed text.
|
|
Draws item text.
This function is called by
Implemented in CTextListItemDrawer. |
|
Draws the frame. Uses the colours set with the fonts and colour functions described above.
|
|
Draws the entire item.
This function is called by the list box view. As implemented in
Reimplemented in CSingleHeadingStyleItemDrawer, CDoubleLargeStyleItemDrawer, and CWordWrappedFormattedCellItemDrawer. |
|
Not Used in S60. Reimplemented in CColumnListBoxItemDrawer, and CFormattedCellListBoxItemDrawer. |
|
Gets the item drawer flags.
|
|
Gets the font for the specified item.
The function returns
Reimplemented in CTextListItemDrawer. |
|
Gets graphics context which is used for drawing.
|
|
Gets the colour used to draw the background for highlighted items.
|
|
Gets the colour used to draw highlighted text.
|
|
Gets current item cell size.
|
|
Gets the width of the specified item.
Reimplemented in CColumnListBoxItemDrawer, CFormattedCellListBoxItemDrawer, and CTextListItemDrawer. |
|
Gets the colour used to draw tick marks. A tick mark usually indicates that an item is selected.
|
|
Gets mark column width.
|
|
Gets the width of the gap between the column containig the lists item marks and the text column.
|
|
Gets the ascent of the matcher cursor.
This is obtained for the item at index
Reimplemented in CTextListItemDrawer. |
|
Gets a rectangle describing where the matcher cursor should be drawn.
The default behavious is to return uninitialised
Reimplemented in CTextListItemDrawer. |
|
Gets the minimum cell size.
Reimplemented in CColumnListBoxItemDrawer, CFormattedCellListBoxItemDrawer, and CTextListItemDrawer. |
|
Gets the colour and style properties of the specified item.
Reimplemented in CColumnListBoxItemDrawer, and CFormattedCellListBoxItemDrawer. |
|
Resets the pen style, brush style, brush colour etc. to suitable starting values for this class. This function is called after every drawing operation. Reimplemented in CTextListItemDrawer. |
|
Sets the colour used to draw the background for non-highlighted items.
|
|
Sets the font storage data for the item drawer and transfer ownership of that data.
|
|
Sets the colour used to draw the background for dimmed items.
|
|
Sets the colour used to draw dimmed text.
|
|
Sets whether item tick marks are drawn.
If the draw mark flag iDrawMark is set,
|
|
Sets the item drawer flags.
|
|
Sets the graphics context which this object uses for drawing.
Reimplemented in CTextListItemDrawer. |
|
Sets the colour used to draw the background for highlighted items.
|
|
Sets the colour used to draw highlighted text.
|
|
Sets the item cell size. The cell size is the on-screen size of the entire item, including its text and its item mark.
Reimplemented in CColumnListBoxItemDrawer, and CFormattedCellListBoxItemDrawer. |
|
Sets the width of the column containing the mark.
|
|
Sets the width of the gap between the column containing the lists item marks and the text column.
|
|
Ability to enable skins in listboxes.
|
|
Sets symbol font for the item drawer. The symbol font is used to draw the standard tick item marks.
|
|
Sets the colour used to draw non-highlighted text.
|
|
Sets up the graphics context for the specified item.
|
|
Sets the vertical gap between items in the list.
|
|
Sets the viewing rectangle for this item drawer.
This value is not used by the
|
|
Access to skin contexts.
|
|
Gets the colour used to draw non-highlighted text.
|
|
Gets the vertical gap between items in pixels.
|
|
Background color. |
|
Data model. |
|
Color of dimmed background. |
|
Color of dimmed text. |
|
Draw mark. |
|
Graphics context controller. |
|
Highlighted background color. |
|
Color of highlighted text. |
|
Item's cell size. |
|
Mark color. |
|
Mark column width. |
|
Mark gutter. |
|
Color of text. |
|
View area. |