00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #if !defined(__WSPRIT11_H__)
00018 #define __WSPRIT11_H__
00019
00020 #include "Base.h"
00021
00022
00023
00024 class CMainWindow : public CWindow
00025 {
00026 public:
00027 CMainWindow (CWsClient* aClient);
00028 ~CMainWindow ();
00029 void Draw (const TRect& aRect);
00030 void HandlePointerEvent (TPointerEvent& aPointerEvent);
00031 void HandlePointerMoveBufferReady ();
00032 };
00033
00035
00037
00038 class CSprite;
00039
00040 class CExampleWsClient : public CWsClient
00041 {
00042 public:
00043 static CExampleWsClient* NewL(const TRect& aRect);
00044 private:
00045 CExampleWsClient (const TRect& aRect);
00046 void ConstructMainWindowL();
00047 ~CExampleWsClient ();
00048 void RunL ();
00049 void HandleKeyEventL (TKeyEvent& aKeyEvent);
00050 private:
00051 CMainWindow* iMainWindow;
00052 CSprite* iSprite;
00053 const TRect& iRect;
00054 };
00055
00056 class CSprite : public CBase
00057 {
00058 public:
00059 CSprite (CWsClient* aClient);
00060 ~CSprite ();
00061 void ConstructL(CWindow* aWindow);
00062 void CreateBitmapL(CFbsBitmap* &aBitmap, TInt aSpriteNum, TBool aDoMask);
00063 private:
00064 CWsClient* iClient;
00065 RWsSprite iSprite;
00066 TSpriteMember iSpriteMember[4];
00067 };
00068
00069 #endif