|
1 /* |
|
2 * Copyright (c) 2008 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: Definition of class CFscContactActionMenuBorder. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_FSCCONTACTACTIONMENUBORDER_H |
|
20 #define C_FSCCONTACTACTIONMENUBORDER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <coecntrl.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 |
|
27 /** |
|
28 * Contact Action Menu Border implementation. |
|
29 * |
|
30 * @since S60 3.1 |
|
31 */ |
|
32 class CFscContactActionMenuBorder : public CCoeControl |
|
33 { |
|
34 |
|
35 public: // Public constructor and destructor |
|
36 |
|
37 /** |
|
38 * Two-phased constructor. |
|
39 * |
|
40 * @param aRect Rect |
|
41 * @param aCornerType Corner type |
|
42 * |
|
43 * @return New instance of the component |
|
44 */ |
|
45 static CFscContactActionMenuBorder* NewL( |
|
46 const TRect& aRect, |
|
47 TCornerType aCornerType ); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 virtual ~CFscContactActionMenuBorder(); |
|
53 |
|
54 public: // From CCoeControl |
|
55 |
|
56 /** |
|
57 * Draw |
|
58 * |
|
59 * @param aRect rect |
|
60 */ |
|
61 virtual void Draw( const TRect& aRect ) const; |
|
62 |
|
63 public: // Public methods |
|
64 |
|
65 /* |
|
66 * Set new rect |
|
67 * |
|
68 * @param aRect Rect |
|
69 */ |
|
70 void SetRect( const TRect& aRect ); |
|
71 |
|
72 /* |
|
73 * Set new corner type |
|
74 * |
|
75 * @param aCornerType Corner type |
|
76 */ |
|
77 void SetCornerType( TCornerType aCornerType ); |
|
78 |
|
79 /* |
|
80 * Set new color for the border |
|
81 * |
|
82 * @param aColor |
|
83 */ |
|
84 void SetColor( TRgb aColor ); |
|
85 |
|
86 private: // Private constructors |
|
87 |
|
88 /** |
|
89 * Constructor. |
|
90 * |
|
91 * @param aRect Rect |
|
92 * @param aCornerType Corner type |
|
93 */ |
|
94 CFscContactActionMenuBorder( |
|
95 const TRect& aRect, |
|
96 TCornerType aCornerType ); |
|
97 |
|
98 /** |
|
99 * Second phase constructor. |
|
100 */ |
|
101 void ConstructL(); |
|
102 |
|
103 private: // data |
|
104 |
|
105 /* |
|
106 * Border rect |
|
107 */ |
|
108 TRect iRect; |
|
109 |
|
110 /* |
|
111 * Border's corner type |
|
112 */ |
|
113 TCornerType iCornerType; |
|
114 |
|
115 /** |
|
116 * Border's color |
|
117 */ |
|
118 TRgb iColor; |
|
119 |
|
120 }; |
|
121 |
|
122 #endif // C_FSCCONTACTACTIONMENUBORDER_H |
|
123 |