windowing/windowserver/tauto/TFADINGBITMAP.H
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 2007-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 __TFADINGBITMAP_H__
       
    23 #define __TFADINGBITMAP_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 //===================================================
       
    33 // CBaseWin Definition
       
    34 // The plain green background window
       
    35 //===================================================
       
    36 
       
    37 class CBaseWin : public CTWin
       
    38 	{
       
    39 public:
       
    40 	CBaseWin();
       
    41 	~CBaseWin();
       
    42 	void Draw();
       
    43 	void ConstructWinL(TPoint, TSize, TBool);
       
    44 
       
    45 public:
       
    46 	CFbsBitmap *iTempBitmap;
       
    47 	CFbsBitmap *iMaskGray256;
       
    48 	CFbsBitmap *iMaskGray2;
       
    49 	CFbsBitmap *iTempMask;
       
    50 	CFbsBitmap *iBitmap;
       
    51 	
       
    52 	TRgb iFadedPixel;
       
    53 	TRgb iNonFadedPixel;
       
    54 
       
    55 	TBuf <11> iMode;
       
    56 	};
       
    57 
       
    58 
       
    59 //===================================================
       
    60 // CTFadingBitmap Definition
       
    61 // Bitmaps to be tested
       
    62 //===================================================
       
    63 
       
    64 class CTFadingBitmap : public CTWsGraphicsBase
       
    65 	{
       
    66 public:
       
    67 	CTFadingBitmap(CTestStep* aStep);
       
    68 	~CTFadingBitmap();
       
    69 	/*Sets the windowing environment,*/
       
    70 	void ConstructL();
       
    71 
       
    72 protected:
       
    73 	//from 	CTGraphicsStep - Calls the fading bitmap test.
       
    74 	virtual void RunTestCaseL(TInt aCurTestCase);
       
    75 private:
       
    76 	void TestFadingL ();
       
    77 
       
    78 private:
       
    79 	CBaseWin *iBgWin;
       
    80 	TBool iTestResult;
       
    81 	};
       
    82 
       
    83 class CTFadingBitmapStep : public CTGraphicsStep
       
    84 	{
       
    85 public:
       
    86 	CTFadingBitmapStep();
       
    87 protected:
       
    88 	//from CTGraphicsStep
       
    89 	virtual CTGraphicsBase* CreateTestL();
       
    90 	};
       
    91 
       
    92 _LIT(KTFadingBitmapStep,"TFadingBitmap");
       
    93 
       
    94 #endif