examples/Graphics/WS/BitmapSprite/BitmapSprite.h

00001 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
00002 // All rights reserved.
00003 // This component and the accompanying materials are made available
00004 // under the terms of "Eclipse Public License v1.0"
00005 // which accompanies this distribution, and is available
00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00007 //
00008 // Initial Contributors:
00009 // Nokia Corporation - initial contribution.
00010 //
00011 // Contributors:
00012 //
00013 // Description:
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 //                                              Derived client class
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

Generated by  doxygen 1.6.2