1 /* |
|
2 * Copyright (c) 2007 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: Active Palette Styler* |
|
15 */ |
|
16 |
|
17 |
|
18 /** |
|
19 * @file ActivePalette2SemiTransparentStyler.h |
|
20 * Active Palette Semi-transparent Styler |
|
21 */ |
|
22 |
|
23 |
|
24 #ifndef _ACTIVE_PALETTE_2_SEMI_TRANSPARENT_STYLER_H |
|
25 #define _ACTIVE_PALETTE_2_SEMI_TRANSPARENT_STYLER_H |
|
26 |
|
27 #include "ActivePalette2Styler.h" |
|
28 |
|
29 /** |
|
30 * Renders the semi-transparent drawing style 2D AP |
|
31 */ |
|
32 class CActivePalette2SemiTransparentStyler : public CActivePalette2Styler |
|
33 { |
|
34 public: |
|
35 /** |
|
36 * 2-stage construction |
|
37 * @return The newly-created object |
|
38 */ |
|
39 static CActivePalette2SemiTransparentStyler* NewL(); |
|
40 |
|
41 /** |
|
42 * Destructor |
|
43 */ |
|
44 ~CActivePalette2SemiTransparentStyler(); |
|
45 |
|
46 /// @name From CActivePalette2Styler |
|
47 //@{ |
|
48 virtual void ConstructL(); |
|
49 virtual void DrawItem(TInt aScreenPos, CFbsBitmap* aIcon, CFbsBitmap* aMask, TInt aOffsetFrame, TInt aOffsetTotal); |
|
50 virtual void DrawGap(TInt aScreenPos, TInt aOffsetFrame, TInt aOffsetTotal); |
|
51 virtual void AnimItem(TInt aScreenPos, CFbsBitmap* aIcon, CFbsBitmap* aMask); |
|
52 virtual void DrawTopScrollArrowSection(TBool aShowArrow); |
|
53 virtual void DrawBottomScrollArrowSection(TBool aShowArrow); |
|
54 //@} |
|
55 |
|
56 protected: |
|
57 /// @name From CActivePalette2Styler |
|
58 //@{ |
|
59 virtual TInt TooltipNoseMaskId(); |
|
60 virtual TInt TooltipBodyMaskId(); |
|
61 //@} |
|
62 |
|
63 private: |
|
64 /// Mask for top section. Owned |
|
65 CFbsBitmap* iAPTopSectionMask; |
|
66 /// Mask for items. Owned |
|
67 CFbsBitmap* iAPItemMask; |
|
68 /// Mask for gaps. Owned |
|
69 CFbsBitmap* iAPGapMask; |
|
70 /// Mask for bottom section. Owned |
|
71 CFbsBitmap* iAPBottomSectionMask; |
|
72 }; |
|
73 |
|
74 #endif // _ACTIVE_PALETTE_2_SEMI_TRANSPARENT_STYLER_H |
|