32 #include "HuiTargetBitmap.h" |
32 #include "HuiTargetBitmap.h" |
33 #endif |
33 #endif |
34 |
34 |
35 #include <e32math.h> |
35 #include <e32math.h> |
36 |
36 |
|
37 #include "alfmoduletestconf.h" |
|
38 #ifdef USE_MODULE_TEST_HOOKS_FOR_ALF |
|
39 // Provides TLS object data for test cases. |
|
40 // This is used only if module test hooks are set on. |
|
41 #include "huistatictlsdata.h" |
|
42 #endif // USE_MODULE_TEST_HOOKS_FOR_ALF |
|
43 // Provides module test hook defines. |
|
44 #include "alfmoduletestdefines.h" |
|
45 |
37 |
46 |
38 EXPORT_C CHuiCanvasGc::CHuiCanvasGc(): |
47 EXPORT_C CHuiCanvasGc::CHuiCanvasGc(): |
39 iPenColor(KRgbBlack), |
48 iPenColor(KRgbBlack), |
40 iPenWidth(1.f), |
49 iPenWidth(1.f), |
41 iOpacity(1.f), |
50 iOpacity(1.f), |
42 iPolygonDrawMode(EHuiNoFill), |
51 iPolygonDrawMode(EHuiNoFill), |
43 iVerticalTextAlign(EHuiAlignVTop), |
52 iVerticalTextAlign(EHuiAlignVTop), |
44 iHorizontalTextAlign(EHuiAlignHLeft), |
53 iHorizontalTextAlign(EHuiAlignHLeft), |
45 iTextStyleId(EHuiTextStyleNormal), |
54 iTextStyleId(EHuiTextStyleNormal), |
46 iEffectiveOpacityEnabled(ETrue) |
55 iEffectiveOpacityEnabled(ETrue) |
47 { |
56 { |
48 } |
57 } |
49 |
58 |
50 EXPORT_C CHuiCanvasGc::~CHuiCanvasGc() |
59 EXPORT_C CHuiCanvasGc::~CHuiCanvasGc() |
51 { |
60 { |
52 iClippingRegion.Close(); |
61 iClippingRegion.Close(); |
1344 DoDrawRenderBuffer(aImage, aDestinationPoint); |
1357 DoDrawRenderBuffer(aImage, aDestinationPoint); |
1345 } |
1358 } |
1346 |
1359 |
1347 DisableDelayedClippingIfNeeded(); |
1360 DisableDelayedClippingIfNeeded(); |
1348 |
1361 |
1349 Cleanup(); |
1362 Cleanup(); |
|
1363 |
|
1364 AMT_MAP_INC_VALUE_IF( iVisual, iIntMap, |
|
1365 AMT_MAP_CPTR_TO_KEY_CAST( iVisual ), |
|
1366 EAlfModuleTestTypeCoreToolkitDrawFromRenderBuffer ); |
1350 } |
1367 } |
1351 |
1368 |
1352 EXPORT_C void CHuiCanvasGc::ClearRenderBuffer( CHuiCanvasRenderBuffer& aImage, const TRect & aRect ) |
1369 EXPORT_C void CHuiCanvasGc::ClearRenderBuffer( CHuiCanvasRenderBuffer& aImage, const TRect & aRect ) |
1353 { |
1370 { |
1354 DoClearRenderBuffer(aImage, aRect); |
1371 DoClearRenderBuffer(aImage, aRect); |