windowing/windowserver/tauto/TGETPIXEL.H
changeset 116 171fae344dd4
parent 103 2717213c588a
equal deleted inserted replaced
103:2717213c588a 116:171fae344dd4
     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 __TGETPIXEL_H__
       
    24 #define __TGETPIXEL_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 CTGetPixel : public CTWsGraphicsBase
       
    33 	{
       
    34 public:
       
    35 	CTGetPixel(CTestStep* aStep);
       
    36 	~CTGetPixel();
       
    37 	void DrawAndCheckLine(const TPoint &aPos,TInt aLen,TRgb aColor);
       
    38 	void TestCheckRect();
       
    39 	void GetPixelTest();
       
    40 	void ConstructL();
       
    41 	void TestPanicsL();
       
    42 	void PaletteTestL();
       
    43 protected:
       
    44 //from 	CTGraphicsStep
       
    45 	virtual void RunTestCaseL(TInt aCurTestCase);
       
    46 private:
       
    47 	void DrawColorsL();
       
    48 	void TestColors(CPalette* aPalette);
       
    49 	void CheckPaletteL(CPalette*& aPalette);
       
    50 	void ClearOutRedraws();
       
    51 private:
       
    52 	TSize iWinSize;
       
    53 	TRgb *iRgbBuf;
       
    54 	RWindow iWindow;
       
    55 	};
       
    56 
       
    57 class CTGetPixelStep : public CTGraphicsStep
       
    58 	{
       
    59 public:
       
    60 	CTGetPixelStep();
       
    61 protected:	
       
    62 	//from CTGraphicsStep
       
    63 	virtual CTGraphicsBase* CreateTestL();
       
    64 	};
       
    65 
       
    66 _LIT(KTGetPixelStep,"TGetPixel");
       
    67 
       
    68 
       
    69 #endif