1 /* |
|
2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0"" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Predictive Candidate list |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 #ifndef CAKNFEPUICTRLJAPANESEPREDICTIVELISTBOXITEMDRAWER_H |
|
30 #define CAKNFEPUICTRLJAPANESEPREDICTIVELISTBOXITEMDRAWER_H |
|
31 |
|
32 // INCLUDES |
|
33 |
|
34 // CONSTANTS |
|
35 |
|
36 // FORWARD DECLARATIONS |
|
37 |
|
38 // CLASS DECLARATION |
|
39 |
|
40 /** |
|
41 * CAknFepUICtrlJapanesePredictiveListboxItemDrawer draws a single list item |
|
42 * and manages list item properties. |
|
43 * |
|
44 * @lib AknFep.lib |
|
45 * @since 2.6 |
|
46 */ |
|
47 NONSHARABLE_CLASS(CAknFepUICtrlJapanesePredictiveListboxItemDrawer) |
|
48 : public CFormattedCellListBoxItemDrawer |
|
49 { |
|
50 public: // Constructors and destructor |
|
51 /** |
|
52 * Constructors |
|
53 * @since 2.6 |
|
54 * @param aTextListBoxModel |
|
55 * @param aFont |
|
56 * @param aFormattedCellData |
|
57 */ |
|
58 CAknFepUICtrlJapanesePredictiveListboxItemDrawer( |
|
59 MTextListBoxModel* aTextListBoxModel, |
|
60 const CFont* aFont, |
|
61 CFormattedCellListBoxData* aFormattedCellData); |
|
62 |
|
63 public: // New functions |
|
64 /** |
|
65 * Drawing listbox items |
|
66 * @since 2.6 |
|
67 * @param aItemIndex a item index to draw |
|
68 * @param aItemRectPos a rect to draw |
|
69 * @param aItemIsSelected a flag to select |
|
70 * @param aItemIsCurrent a flag to current |
|
71 * @param aViewIsEmphasized |
|
72 * @param aViewIsDimmed |
|
73 * @param aHighlightStartXPos a starting x-position to hightlight |
|
74 * @param aHighlightEndXPos a ending x-position to hightlight |
|
75 */ |
|
76 void DrawItem(TInt aItemIndex, |
|
77 TPoint aItemRectPos, |
|
78 TBool aItemIsSelected, |
|
79 TBool aItemIsCurrent, |
|
80 TBool aViewIsEmphasized, |
|
81 TBool aViewIsDimmed, |
|
82 TInt aHighlightStartXPos, |
|
83 TInt aHighlightEndXPos) const; |
|
84 }; |
|
85 |
|
86 #endif // CAKNFEPUICTRLJAPANESEPREDICTIVELISTBOXITEMDRAWER_H |
|
87 |
|
88 // End of File |
|