os/graphics/graphicsapitest/screendriverhaitest/screendriver/inc/t_cfbsdrawdevicedata.h
First public contribution.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #ifndef T_CFBSDRAWDEVICE_DATA_H
20 #define T_CFBSDRAWDEVICE_DATA_H
24 #include "datawrapperbase.h"
25 #include "displayconstants.h"
31 class CParameterAgentPlugin;
34 * Test Active Notification class
38 class CT_CFbsDrawDeviceData : public CDataWrapperBase
42 ~CT_CFbsDrawDeviceData();
44 static CT_CFbsDrawDeviceData* NewL();
46 virtual TAny* GetObject();
47 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
49 CT_CFbsDrawDeviceData();
53 void DoCmdNewScreenDeviceL(const TTEFSectionName& aSection);
54 void DoCmdDestructor();
55 void DoCmdInitScreen();
56 void DoCmdSetDisplayMode();
57 void DoCmdSetAutoUpdate(const TTEFSectionName& aSection);
58 void DoCmdOrientationsAvailable();
59 void DoCmdSetOrientation(const TTEFSectionName& aSection);
60 void DoCmdWriteLineL(const TTEFSectionName& aSection);
61 void DoCmdPreWriteLine(const TTEFSectionName& aSection);
62 void DoCmdWriteRgb(const TTEFSectionName& aSection);
63 void DoCmdWriteRgbMulti(const TTEFSectionName& aSection);
64 void DoCmdWriteBinaryLineL(const TTEFSectionName& aSection);
65 void DoCmdReadLineL(const TTEFSectionName& aSection);
66 void DoCmdWriteRGBAlphaLineL(const TTEFSectionName& aSection);
67 void DoCmdShadowArea(const TTEFSectionName& aSection);
68 void DoCmdSetShadowMode(const TTEFSectionName& aSection);
69 void DoCmdWriteBinaryLineVerticalL(const TTEFSectionName& aSection);
70 void DoCmdWriteBinaryL(const TTEFSectionName& aSection);
71 void Clear(TRgb aColor);
72 TInt LongWidth(TInt aWidth,TDisplayMode aDispMode);
73 void FillBuffer(TUint8* aBuffer,TInt aByteSize,TDisplayMode aDispMode);
75 void SetShadowAndFadingMode(TInt shadowMode,TInt blackPoint, TInt whitePoint);
76 TInt ReadRect(TRect& r, const TTEFSectionName& aSection);
77 TBool InitRectangles();
78 void ReadRectL(HBufC& string, RArray<TInt>& aResult);
81 CFbsDrawDevice* iDrawDevice;
82 CGraphicsContext::TDrawMode iDMode;
83 TDisplayMode iDispMode;
86 TPostShadowMode iPostBlendShadow;
87 RArray<TRect> iTestRect;
90 static const TEnumEntryTable iEnumShadowModes[];
91 static const TEnumEntryTable iEnumDisplayModes[];
92 static const TEnumEntryTable iEnumDrawModes[];
93 static const TEnumEntryTable iEnumOrientationModes[];
97 #endif // T_CFBSDRAWDEVICE_DATA_H