diff -r f345bda72bc4 -r 43e37759235e Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_bitmap_sprite_8h-source.html --- a/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_bitmap_sprite_8h-source.html Tue Mar 30 11:56:28 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +0,0 @@ - -
-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 -