#include <mw/aknlists.h>
class CWordWrappedFormattedCellItemDrawer : public CFormattedCellListBoxItemDrawer |
Public Member Functions | |
---|---|
CWordWrappedFormattedCellItemDrawer(MTextListBoxModel *, const CFont *, CFormattedCellListBoxData *, CEikListBox *, TInt, TInt) | |
virtual IMPORT_C void | DrawItem(TInt, TPoint, TBool, TBool, TBool, TBool) |
virtual IMPORT_C void | DrawItemText(TInt, const TRect &, TBool, TBool, TBool) |
Inherited Enumerations | |
---|---|
CListItemDrawer:TFlags | |
CListItemDrawer:TListItemAttribute |
Word wrapping for double2 styles
IMPORT_C | CWordWrappedFormattedCellItemDrawer | ( | MTextListBoxModel * | aTextListBoxModel, |
const CFont * | aFont, | |||
CFormattedCellListBoxData * | aFormattedCellData, | |||
CEikListBox * | aListBox, | |||
TInt | aSubCell, | |||
TInt | aSubCell2 | |||
) |
IMPORT_C void | DrawItem | ( | TInt | aItemIndex, |
TPoint | aItemRectPos, | |||
TBool | aItemIsSelected, | |||
TBool | aItemIsCurrent, | |||
TBool | aViewIsEmphasized, | |||
TBool | aViewIsDimmed | |||
) | const [virtual] |
Reimplemented from CListItemDrawer::DrawItem(TInt,TPoint,TBool,TBool,TBool,TBool)const
Draws the entire item.
This function is called by the list box view. As implemented in CListItemDrawer, this function draws the item text using DrawActualItem(), and an item mark using DrawItemMark().
Parameter | Description |
---|---|
aItemIndex | Index of the item to draw. |
aItemRectPos | Position of the rectangle to draw. |
aItemIsSelected | Whether the item is selected. |
aItemIsCurrent | Whether the item is current. |
aViewIsEmphasized | Whether the list box view has the emphasised flag set (see CListBoxView::SetEmphasized()). |
aViewIsDimmed | Whether the list box view has its dimmed flag set (see CListBoxView::SetDimmed()). |
IMPORT_C void | DrawItemText | ( | TInt | aItemIndex, |
const TRect & | aItemTextRect, | |||
TBool | aItemIsCurrent, | |||
TBool | aViewIsEmphasized, | |||
TBool | aItemIsSelected | |||
) | const [virtual] |
Reimplemented from CFormattedCellListBoxItemDrawer::DrawItemText(TInt,const TRect &,TBool,TBool,TBool)const
From CTextListItemDrawer.
Draw an item in a list box.
Parameter | Description |
---|---|
aItemIndex | The index into the model's item array of the item to draw. |
aItemTextRect | The item s text rectangle. |
aItemIsCurrent | ETrue if the item is current. EFalse otherwise. |
aViewIsEmphasized | ETrue if the view is emphasized. EFalse otherwise. |
aItemIsSelected | ETrue if the item is selected. EFalse otherwise. |