1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/graphicsdeviceinterface/bitgdi/tbit/TGDI.H Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,103 @@
1.4 +// Copyright (c) 1997-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 +#ifndef __TGDI_H__
1.20 +#define __TGDI_H__
1.21 +
1.22 +#include <test/ttmsgraphicsstep.h>
1.23 +#ifndef __E32STD_H__
1.24 +#include <e32std.h>
1.25 +#endif
1.26 +#ifndef __E32TEST_H__
1.27 +#include <e32test.h>
1.28 +#endif
1.29 +#ifndef __GDI_H__
1.30 +#include <gdi.h>
1.31 +#endif
1.32 +#ifndef __FBS_H__
1.33 +#include <fbs.h>
1.34 +#endif
1.35 +#ifndef __BITMAP_H__
1.36 +#include <bitmap.h>
1.37 +#endif
1.38 +#ifndef __BITSTD_H__
1.39 +#include <bitstd.h>
1.40 +#endif
1.41 +
1.42 +const TInt KFailureSectionNameBufferLength = 64;
1.43 +
1.44 +class TestGdi : public CTTMSGraphicsStep
1.45 + {
1.46 +public:
1.47 + IMPORT_C TestGdi();
1.48 + IMPORT_C void Construct(CBitmapDevice* aDevice,CFbsBitGc* aContext,TDes& aFailureSection);
1.49 + IMPORT_C void ConstructL(CBitmapDevice* aDevice,CFbsBitGc* aContext,TDes& aFailureSection);
1.50 + IMPORT_C TBool Test();
1.51 +private:
1.52 + void DoTestL();
1.53 + void CheckL(TBool aValue);
1.54 + void Clear();
1.55 + void ScanAreaL(TInt aX,TInt aY,TInt aLength,TInt aHeight,TRgb aColor);
1.56 + void CheckClearL();
1.57 + void CheckPlotL(const TPoint& aPoint);
1.58 + void CheckRectInsideL(const TRect& aRect);
1.59 + void CheckRectOutsideL(const TRect& aRect);
1.60 + void CheckQuadInsideL(const TRect& aRect);
1.61 + void CheckQuadOutsideL(const TRect& aRect);
1.62 + void CheckMaskedResultsL(CFbsBitmap* aBgBmp,CFbsBitmap* aSrcBmp,CFbsBitmap* aMaskBmp,TRect& aTarRect,TBool aInvertMask,TBool aAlphaBlend=EFalse,TBool aSemiTransparentMask=EFalse);
1.63 + void DoModeL();
1.64 + void DoColorL();
1.65 + void DoLineL();
1.66 + void DoWideLineL();
1.67 + void DoArcL();
1.68 + void DoRectL();
1.69 + void DoEllipseL();
1.70 + void DoPieL();
1.71 + void DoRoundRectL();
1.72 + void DoPolygonArrayL();
1.73 + void DoPolygonPtrL();
1.74 + void DoPolygonPtr0();
1.75 + void DoText();
1.76 + void DoPaintL();
1.77 + void DoCopyL();
1.78 + void DoBltL();
1.79 + void DoBltMaskedL();
1.80 + void DoShadowL();
1.81 + void DoFadeL();
1.82 + void DoDrawBitmapMaskedL(TBool aColorMask);
1.83 + void DoBltCompressedL();
1.84 + void DoDrawBitmapSemiTransparentMaskedL();
1.85 + void FillBitmap(CFbsBitmap* aBitmap, TRgb aRgb);
1.86 + TVerdict doTestStepL(){return TestStepResult();};
1.87 + void DoBoxTextVertical();
1.88 +private:
1.89 + CBitmapDevice* iDev;
1.90 + CFbsBitGc* iCon;
1.91 + CFbsBitmap iBitmap;
1.92 + CFbsBitmap iBitmap2;
1.93 + TInt iBitmapWidth;
1.94 + TInt iBitmapHeight;
1.95 + TSize iSize;
1.96 + TRect iRect;
1.97 + TRect iZeroRect;
1.98 + TRect iUnitRect;
1.99 + TRect iUnNormRect;
1.100 + TRect iLargeRect;
1.101 + TRect iCentredRect;
1.102 + TRect iOffScreenRects[8];
1.103 + TDes* iSection;
1.104 + };
1.105 +
1.106 +#endif