windowing/windowserver/tauto/TMulTran.H
changeset 116 171fae344dd4
parent 103 2717213c588a
equal deleted inserted replaced
103:2717213c588a 116:171fae344dd4
     1 // Copyright (c) 1996-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 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @test
       
    19  @internalComponent - Internal Symbian test code
       
    20 */
       
    21 
       
    22 #ifndef __TMULTRAN_H__
       
    23 #define __TMULTRAN_H__
       
    24 
       
    25 #include <e32std.h>
       
    26 #include <w32std.h>
       
    27 #include "../tlib/testbase.h"
       
    28 #include "AUTO.H"
       
    29 #include "TGraphicsHarness.h"
       
    30 
       
    31 
       
    32 class CTMultipleTrans : public CTWsGraphicsBase
       
    33 	{
       
    34 public:
       
    35 	CTMultipleTrans(CTestStep* aStep);
       
    36 	~CTMultipleTrans();
       
    37 	void ConstructL();
       
    38 	void CheckDisplay();
       
    39 	void SimpleTest();
       
    40 	void ChangeVisibility();
       
    41 	void ChangeVisibility2();
       
    42 	void OrdinalPos();
       
    43 	void SizeChange();
       
    44 	void MoveWin();
       
    45 	void GroupWinL();
       
    46 	void StartShadows();
       
    47 	void ShadowsOnOff();
       
    48 	void StartChildL();
       
    49 	void StartChild2L();
       
    50 	void FadeTranWin();
       
    51 protected:	//Pure virtual function from MTestCase
       
    52 	void RunTestCaseL(TInt aCurTestCase);
       
    53 private:
       
    54 	void RecreateWindowsL(CTWinBase *aParent=0);
       
    55 	void ShadowRegion(TRegion& aRegion,TInt aWin);
       
    56 	void AdvancedCheckRect();
       
    57 	void SizeChange(TInt aJump);
       
    58 	TSize GetSize(TInt aPos);
       
    59 
       
    60 
       
    61 private:
       
    62 	CTBlankWindow* iBackgroundWin;
       
    63 	CTBackedUpWin* iCheckWin;
       
    64 	CBitmap* iCheckBitmap;
       
    65 	RPointerArray<CTransWindow> iWindows;
       
    66 	CTransWindow* iTopLeft;
       
    67 	CTransWindow* iTopRight;
       
    68 	CTransWindow* iBotLeft;
       
    69 	CTransWindow* iBotRight;
       
    70 	RBlankWindow iBlankWin;
       
    71 	TRgb iBlankWinCol;
       
    72 	TPoint iBlankWinPos;
       
    73 	TSize iBlankWinSize;
       
    74 	TBool iBlankWinVis;
       
    75 	TBool iShadows;
       
    76 	TInt iMajorTest;
       
    77 	TBool iOpacitySupported;
       
    78 	};
       
    79 
       
    80 class CTMultipleTransStep : public CTGraphicsStep
       
    81 	{
       
    82 public:
       
    83 	CTMultipleTransStep();
       
    84 protected:	
       
    85 	//from CTGraphicsStep
       
    86 	virtual CTGraphicsBase* CreateTestL();
       
    87 	};
       
    88 
       
    89 _LIT(KTMultipleTransStep,"TMultipleTrans");
       
    90 
       
    91 #endif