equal
deleted
inserted
replaced
|
1 // Copyright (c) 2005-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 #ifndef SPRITEANIM_H |
|
17 #define SPRITEANIM_H |
|
18 |
|
19 // INCLUDES |
|
20 #include <e32std.h> |
|
21 #include <e32base.h> |
|
22 #include "w32adll.h" |
|
23 #include "w32std.h" |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * CWinAnim |
|
32 * |
|
33 */ |
|
34 |
|
35 class CTestAnimDll; |
|
36 class CAnimProc; |
|
37 |
|
38 class CTSpriteAnim: public CSpriteAnim, CAnimProc |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 ~CTSpriteAnim(); |
|
46 |
|
47 /** |
|
48 * Constructor for performing 1st stage construction |
|
49 */ |
|
50 CTSpriteAnim(CTestAnimDll* aDll, TInt aType); |
|
51 |
|
52 virtual void ConstructL(TAny *aArgs); |
|
53 virtual void Redraw(); |
|
54 virtual void FocusChanged(TBool aState); |
|
55 virtual TInt CommandReplyL(TInt aOpcode, TAny *aArgs); |
|
56 virtual void Command(TInt aOpcode, TAny *aArgs); |
|
57 virtual void Animate(TDateTime *aDateTime); |
|
58 virtual TBool OfferRawEvent(const TRawEvent &aRawEvent); |
|
59 |
|
60 private: |
|
61 void Draw(); |
|
62 void Compare(); |
|
63 |
|
64 TInt DoCmdGetSpriteMemberL(); |
|
65 TInt DoCmdActiveL(); |
|
66 TInt DoCmdSetPositionL(); |
|
67 TInt DoCmdSpriteCanBeSeen(); |
|
68 TInt DoCmdUpdateMemberL(); |
|
69 TInt DoCmdSizeChangeL(); |
|
70 |
|
71 protected: |
|
72 |
|
73 |
|
74 }; |
|
75 |
|
76 #endif // WINANIM_H |
|
77 |