windowing/windowserver/test/ANIMWIN.H
changeset 0 5d03bc08d59c
child 110 7f25ef56562d
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 1999-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 // Animated Bitmap Window classes
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __ANIMWIN_H__
       
    19 #define __ANIMWIN_H__
       
    20 
       
    21 #include <e32std.h>
       
    22 #include <e32base.h>
       
    23 #include "W32STD.H"
       
    24 #include "../tlib/testbase.h"
       
    25 
       
    26 _LIT(VIDEO_MBM_NAME,"Z:\\WSTEST\\MAILANIM.MBM");
       
    27 
       
    28 class RMbmAnim : public RAnim
       
    29 	{
       
    30 public:
       
    31 	inline RMbmAnim(RAnimDll& aDll) :RAnim(aDll) {}
       
    32 	void ConstructL(const RWindowBase &aDevice);
       
    33 	void SetMbmFile(const TBuf<32>& aFileName);
       
    34 	void Activate();
       
    35 	void Deactivate();
       
    36 	void SpeedUp();
       
    37 	void SlowDown();
       
    38 	};
       
    39 
       
    40 class TestWindow11 : public CTWin
       
    41 	{
       
    42 public:
       
    43 	TestWindow11();
       
    44 	~TestWindow11();
       
    45 	void Draw();
       
    46 	void InitWinL();
       
    47 	void WinKeyL(const TKeyEvent &aKey,const TTime &);
       
    48 private:
       
    49 	void LoadDllL();
       
    50 	void CheckWindowSize();
       
    51 private:
       
    52 	RAnimDll* iAnimDll;
       
    53 	RMbmAnim* iAnim;
       
    54 	TSize iVideoSize;
       
    55 	};
       
    56 
       
    57 #endif