|
1 // Copyright (c) 2006-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 // Test CWsGraphic plugins |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __W32STDGRAPHICTEST_H__ |
|
19 #define __W32STDGRAPHICTEST_H__ |
|
20 |
|
21 #include <w32std.h> |
|
22 |
|
23 class TWsGraphicFrameRate: public TWsGraphicMsgFixedBase |
|
24 /** data attached to a CWindowGc::DrawWsGraphic to encourage the artwork to display |
|
25 an approximate framerate as it animates, if available |
|
26 @publishedPartner |
|
27 @released |
|
28 */ { |
|
29 public: |
|
30 enum |
|
31 { |
|
32 ETypeId = 0x10281AAF |
|
33 }; |
|
34 IMPORT_C TWsGraphicFrameRate(); |
|
35 }; |
|
36 |
|
37 NONSHARABLE_CLASS(CWsGraphicTestFrameRate): public CWsGraphic |
|
38 /** Client representation of a test anim that displays its frame-rate |
|
39 |
|
40 @publishedPartner |
|
41 @released |
|
42 */ |
|
43 { |
|
44 public: |
|
45 IMPORT_C static CWsGraphicTestFrameRate* NewL(); |
|
46 IMPORT_C static CWsGraphicTestFrameRate* NewL(TUid aUid); |
|
47 IMPORT_C static CWsGraphicTestFrameRate* NewL(const TWsGraphicId& aReplace); |
|
48 IMPORT_C ~CWsGraphicTestFrameRate(); |
|
49 public: // protected virtuals from CWsGraphic promoted to public |
|
50 using CWsGraphic::ShareGlobally; |
|
51 using CWsGraphic::UnShareGlobally; |
|
52 using CWsGraphic::Share; |
|
53 using CWsGraphic::UnShare; |
|
54 private: |
|
55 CWsGraphicTestFrameRate(); |
|
56 void HandleMessage(const TDesC8& aData); |
|
57 void OnReplace(); |
|
58 }; |
|
59 |
|
60 #endif //__W32STDGRAPHICTEST_H__ |