equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
20 |
20 |
21 #include <coecntrl.h> |
21 #include <coecntrl.h> |
22 #include "nmrbitmapmanager.h" |
22 #include "nmrbitmapmanager.h" |
23 #include "cesmrfield.h" |
23 #include "cesmrfield.h" |
24 |
24 |
25 class CESMRLayoutManager; |
|
26 |
|
27 /** |
25 /** |
28 * CESMRBorderLayer draws border around the focused control. |
26 * CESMRBorderLayer draws border around the focused control. |
29 * |
27 * |
30 * @lib esmrgui.lib |
28 * @lib esmrgui.lib |
31 */ |
29 */ |
38 * |
36 * |
39 * @param aExt Control which has border around it. |
37 * @param aExt Control which has border around it. |
40 * @param aFocusType |
38 * @param aFocusType |
41 * @return Pointer to created and initialized esmr borderlayer object. |
39 * @return Pointer to created and initialized esmr borderlayer object. |
42 */ |
40 */ |
43 IMPORT_C static CMRBackground* NewL( CESMRLayoutManager& aLayoutManager ); |
41 IMPORT_C static CMRBackground* NewL(); |
44 |
42 |
45 /** |
43 /** |
46 * Destructor. |
44 * Destructor. |
47 */ |
45 */ |
48 IMPORT_C virtual ~CMRBackground(); |
46 IMPORT_C virtual ~CMRBackground(); |
57 EEditorFieldNoFocus = 1, |
55 EEditorFieldNoFocus = 1, |
58 EEditorFieldWithFocus, |
56 EEditorFieldWithFocus, |
59 EViewerFieldWithFocus |
57 EViewerFieldWithFocus |
60 }; |
58 }; |
61 |
59 |
62 CMRBackground( CESMRLayoutManager& aLayoutManager ); |
60 CMRBackground(); |
63 void CMRBackground::DrawFocus( |
61 void CMRBackground::DrawFocus( |
64 CWindowGc& aGc, |
62 CWindowGc& aGc, |
65 TRect aRect, |
63 TRect aRect, |
66 const CCoeControl& aControl, |
64 const CCoeControl& aControl, |
67 TBgType aType ) const; |
65 TBgType aType ) const; |
68 CArrayFixFlat<NMRBitmapManager::TMRBitmapId>* IconSkinIdL( TBgType aType ) const; |
66 CArrayFixFlat<NMRBitmapManager::TMRBitmapId>* IconSkinIdL( TBgType aType ) const; |
69 |
67 |
70 private: |
68 private: // Data |
71 /// Ref: Layout manager. |
|
72 CESMRLayoutManager& iLayoutManager; |
|
73 }; |
69 }; |
74 |
70 |
75 #endif // CESMRBORDERLAYER_H |
71 #endif // CESMRBORDERLAYER_H |