sl@0
|
1 |
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
#ifndef __TGDI_H__
|
sl@0
|
17 |
#define __TGDI_H__
|
sl@0
|
18 |
|
sl@0
|
19 |
#include <test/ttmsgraphicsstep.h>
|
sl@0
|
20 |
#ifndef __E32STD_H__
|
sl@0
|
21 |
#include <e32std.h>
|
sl@0
|
22 |
#endif
|
sl@0
|
23 |
#ifndef __E32TEST_H__
|
sl@0
|
24 |
#include <e32test.h>
|
sl@0
|
25 |
#endif
|
sl@0
|
26 |
#ifndef __GDI_H__
|
sl@0
|
27 |
#include <gdi.h>
|
sl@0
|
28 |
#endif
|
sl@0
|
29 |
#ifndef __FBS_H__
|
sl@0
|
30 |
#include <fbs.h>
|
sl@0
|
31 |
#endif
|
sl@0
|
32 |
#ifndef __BITMAP_H__
|
sl@0
|
33 |
#include <bitmap.h>
|
sl@0
|
34 |
#endif
|
sl@0
|
35 |
#ifndef __BITSTD_H__
|
sl@0
|
36 |
#include <bitstd.h>
|
sl@0
|
37 |
#endif
|
sl@0
|
38 |
|
sl@0
|
39 |
const TInt KFailureSectionNameBufferLength = 64;
|
sl@0
|
40 |
|
sl@0
|
41 |
class TestGdi : public CTTMSGraphicsStep
|
sl@0
|
42 |
{
|
sl@0
|
43 |
public:
|
sl@0
|
44 |
IMPORT_C TestGdi();
|
sl@0
|
45 |
IMPORT_C void Construct(CBitmapDevice* aDevice,CFbsBitGc* aContext,TDes& aFailureSection);
|
sl@0
|
46 |
IMPORT_C void ConstructL(CBitmapDevice* aDevice,CFbsBitGc* aContext,TDes& aFailureSection);
|
sl@0
|
47 |
IMPORT_C TBool Test();
|
sl@0
|
48 |
private:
|
sl@0
|
49 |
void DoTestL();
|
sl@0
|
50 |
void CheckL(TBool aValue);
|
sl@0
|
51 |
void Clear();
|
sl@0
|
52 |
void ScanAreaL(TInt aX,TInt aY,TInt aLength,TInt aHeight,TRgb aColor);
|
sl@0
|
53 |
void CheckClearL();
|
sl@0
|
54 |
void CheckPlotL(const TPoint& aPoint);
|
sl@0
|
55 |
void CheckRectInsideL(const TRect& aRect);
|
sl@0
|
56 |
void CheckRectOutsideL(const TRect& aRect);
|
sl@0
|
57 |
void CheckQuadInsideL(const TRect& aRect);
|
sl@0
|
58 |
void CheckQuadOutsideL(const TRect& aRect);
|
sl@0
|
59 |
void CheckMaskedResultsL(CFbsBitmap* aBgBmp,CFbsBitmap* aSrcBmp,CFbsBitmap* aMaskBmp,TRect& aTarRect,TBool aInvertMask,TBool aAlphaBlend=EFalse,TBool aSemiTransparentMask=EFalse);
|
sl@0
|
60 |
void DoModeL();
|
sl@0
|
61 |
void DoColorL();
|
sl@0
|
62 |
void DoLineL();
|
sl@0
|
63 |
void DoWideLineL();
|
sl@0
|
64 |
void DoArcL();
|
sl@0
|
65 |
void DoRectL();
|
sl@0
|
66 |
void DoEllipseL();
|
sl@0
|
67 |
void DoPieL();
|
sl@0
|
68 |
void DoRoundRectL();
|
sl@0
|
69 |
void DoPolygonArrayL();
|
sl@0
|
70 |
void DoPolygonPtrL();
|
sl@0
|
71 |
void DoPolygonPtr0();
|
sl@0
|
72 |
void DoText();
|
sl@0
|
73 |
void DoPaintL();
|
sl@0
|
74 |
void DoCopyL();
|
sl@0
|
75 |
void DoBltL();
|
sl@0
|
76 |
void DoBltMaskedL();
|
sl@0
|
77 |
void DoShadowL();
|
sl@0
|
78 |
void DoFadeL();
|
sl@0
|
79 |
void DoDrawBitmapMaskedL(TBool aColorMask);
|
sl@0
|
80 |
void DoBltCompressedL();
|
sl@0
|
81 |
void DoDrawBitmapSemiTransparentMaskedL();
|
sl@0
|
82 |
void FillBitmap(CFbsBitmap* aBitmap, TRgb aRgb);
|
sl@0
|
83 |
TVerdict doTestStepL(){return TestStepResult();};
|
sl@0
|
84 |
void DoBoxTextVertical();
|
sl@0
|
85 |
private:
|
sl@0
|
86 |
CBitmapDevice* iDev;
|
sl@0
|
87 |
CFbsBitGc* iCon;
|
sl@0
|
88 |
CFbsBitmap iBitmap;
|
sl@0
|
89 |
CFbsBitmap iBitmap2;
|
sl@0
|
90 |
TInt iBitmapWidth;
|
sl@0
|
91 |
TInt iBitmapHeight;
|
sl@0
|
92 |
TSize iSize;
|
sl@0
|
93 |
TRect iRect;
|
sl@0
|
94 |
TRect iZeroRect;
|
sl@0
|
95 |
TRect iUnitRect;
|
sl@0
|
96 |
TRect iUnNormRect;
|
sl@0
|
97 |
TRect iLargeRect;
|
sl@0
|
98 |
TRect iCentredRect;
|
sl@0
|
99 |
TRect iOffScreenRects[8];
|
sl@0
|
100 |
TDes* iSection;
|
sl@0
|
101 |
};
|
sl@0
|
102 |
|
sl@0
|
103 |
#endif
|