os/graphics/windowing/windowserver/test/tauto/TMulTran.H
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/windowing/windowserver/test/tauto/TMulTran.H	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,91 @@
     1.4 +// Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +/**
    1.20 + @file
    1.21 + @test
    1.22 + @internalComponent - Internal Symbian test code
    1.23 +*/
    1.24 +
    1.25 +#ifndef __TMULTRAN_H__
    1.26 +#define __TMULTRAN_H__
    1.27 +
    1.28 +#include <e32std.h>
    1.29 +#include <w32std.h>
    1.30 +#include "../tlib/testbase.h"
    1.31 +#include "AUTO.H"
    1.32 +#include "TGraphicsHarness.h"
    1.33 +
    1.34 +
    1.35 +class CTMultipleTrans : public CTWsGraphicsBase
    1.36 +	{
    1.37 +public:
    1.38 +	CTMultipleTrans(CTestStep* aStep);
    1.39 +	~CTMultipleTrans();
    1.40 +	void ConstructL();
    1.41 +	void CheckDisplay();
    1.42 +	void SimpleTest();
    1.43 +	void ChangeVisibility();
    1.44 +	void ChangeVisibility2();
    1.45 +	void OrdinalPos();
    1.46 +	void SizeChange();
    1.47 +	void MoveWin();
    1.48 +	void GroupWinL();
    1.49 +	void StartShadows();
    1.50 +	void ShadowsOnOff();
    1.51 +	void StartChildL();
    1.52 +	void StartChild2L();
    1.53 +	void FadeTranWin();
    1.54 +protected:	//Pure virtual function from MTestCase
    1.55 +	void RunTestCaseL(TInt aCurTestCase);
    1.56 +private:
    1.57 +	void RecreateWindowsL(CTWinBase *aParent=0);
    1.58 +	void ShadowRegion(TRegion& aRegion,TInt aWin);
    1.59 +	void AdvancedCheckRect();
    1.60 +	void SizeChange(TInt aJump);
    1.61 +	TSize GetSize(TInt aPos);
    1.62 +
    1.63 +
    1.64 +private:
    1.65 +	CTBlankWindow* iBackgroundWin;
    1.66 +	CTBackedUpWin* iCheckWin;
    1.67 +	CBitmap* iCheckBitmap;
    1.68 +	RPointerArray<CTransWindow> iWindows;
    1.69 +	CTransWindow* iTopLeft;
    1.70 +	CTransWindow* iTopRight;
    1.71 +	CTransWindow* iBotLeft;
    1.72 +	CTransWindow* iBotRight;
    1.73 +	RBlankWindow iBlankWin;
    1.74 +	TRgb iBlankWinCol;
    1.75 +	TPoint iBlankWinPos;
    1.76 +	TSize iBlankWinSize;
    1.77 +	TBool iBlankWinVis;
    1.78 +	TBool iShadows;
    1.79 +	TInt iMajorTest;
    1.80 +	TBool iOpacitySupported;
    1.81 +	};
    1.82 +
    1.83 +class CTMultipleTransStep : public CTGraphicsStep
    1.84 +	{
    1.85 +public:
    1.86 +	CTMultipleTransStep();
    1.87 +protected:	
    1.88 +	//from CTGraphicsStep
    1.89 +	virtual CTGraphicsBase* CreateTestL();
    1.90 +	};
    1.91 +
    1.92 +_LIT(KTMultipleTransStep,"TMultipleTrans");
    1.93 +
    1.94 +#endif