|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @test |
|
19 @internalComponent - Internal Symbian test code |
|
20 */ |
|
21 |
|
22 #ifndef __CONTAINDRAWER_H__ |
|
23 #define __CONTAINDRAWER_H__ |
|
24 |
|
25 #include <graphics/wsgraphicdrawer.h> |
|
26 #include <graphics/wsgraphicdrawerinterface.h> |
|
27 |
|
28 class MWsGraphicDrawerContext; |
|
29 |
|
30 NONSHARABLE_CLASS(CWsContainGraphicDrawer): public CWsGraphicDrawer |
|
31 { |
|
32 public: |
|
33 enum {EImplUid = 0x10283521}; |
|
34 |
|
35 public: |
|
36 static CWsContainGraphicDrawer* NewL(); |
|
37 virtual ~CWsContainGraphicDrawer(); |
|
38 // override CWsGraphicDrawer |
|
39 virtual void ConstructL(MWsGraphicDrawerEnvironment& aEnv,const TGraphicDrawerId& aId, MWsClient& aOwner, const TDesC8& aData); |
|
40 virtual void HandleMessage(const TDesC8& aData); |
|
41 private: |
|
42 // override CWsGraphicDrawer |
|
43 virtual void DoDraw(MWsGc& aGc, const TRect& aRect, const TDesC8& aData) const; |
|
44 virtual TBool HasAsChild(const TArray<TGraphicDrawerId>& aIds) const; |
|
45 |
|
46 void DoUpdateColor(TRgb aColor); |
|
47 private: |
|
48 MWsGraphicDrawerContext* iContext; |
|
49 TRgb iColor; |
|
50 }; |
|
51 |
|
52 #endif |