os/graphics/windowing/windowserver/test/tauto/TBLANK.H
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 
     2 // Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 // All rights reserved.
     4 // This component and the accompanying materials are made available
     5 // under the terms of "Eclipse Public License v1.0"
     6 // which accompanies this distribution, and is available
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 //
     9 // Initial Contributors:
    10 // Nokia Corporation - initial contribution.
    11 //
    12 // Contributors:
    13 //
    14 // Description:
    15 //
    16 
    17 /**
    18  @file
    19  @test
    20  @internalComponent - Internal Symbian test code
    21 */
    22 
    23 #ifndef __TBLANK_H__
    24 #define __TBLANK_H__
    25 
    26 #include <e32std.h>
    27 #include <w32std.h>
    28 #include "../tlib/testbase.h"
    29 #include "AUTO.H"
    30 #include "TGraphicsHarness.h"
    31 
    32 class CBaseWindow : public CTWin
    33 	{
    34 public:
    35 	CBaseWindow();
    36 	void ConstructL(CTWinBase &parent);
    37 	virtual void Draw();
    38 	void SetColor(const TRgb &aRgb);
    39 private:
    40 	TRgb iRgb;
    41 	};
    42 
    43 class CTBlank : public CTWsGraphicsBase
    44 	{
    45 public:
    46 	CTBlank(CTestStep* aStep);
    47 	~CTBlank();
    48 protected:
    49 //from 	CTGraphicsStep
    50 	virtual void RunTestCaseL(TInt aCurTestCase);
    51 public:
    52 	void doDestruct();
    53 	void ConstructL();
    54 	void InvalidateTestWin(const TRect &aRect);
    55 	void CheckBlankWindows();
    56 	void SetColor(const TRgb &aRgb);
    57 private:
    58 	TBool iDoCheck;
    59 	TSize iWinSize;
    60 	CBaseWindow *iBaseWin;
    61 	CTBlankWindow *iTestWin;
    62 	};
    63 
    64 class CTBlankStep : public CTGraphicsStep
    65 	{
    66 public:
    67 	CTBlankStep();
    68 protected:	
    69 	//from CTGraphicsStep
    70 	virtual CTGraphicsBase* CreateTestL();
    71 	};
    72 
    73 _LIT(KTBlankStep,"TBlank");
    74 
    75 
    76 #endif