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