23 #include <uiacceltk/HuiVisual.h> |
23 #include <uiacceltk/HuiVisual.h> |
24 #include "HuiFxConstants.h" |
24 #include "HuiFxConstants.h" |
25 #include <e32math.h> |
25 #include <e32math.h> |
26 #include "HuiCmdBufferBrush.h" |
26 #include "HuiCmdBufferBrush.h" |
27 |
27 |
28 EXPORT_C CHuiFxVisualLayer* CHuiFxVisualLayer::NewL(MHuiEffectable& aVisual) |
28 EXPORT_C CHuiFxVisualLayer* CHuiFxVisualLayer::NewL(MHuiEffectable* aVisual) |
29 { |
29 { |
30 CHuiFxVisualLayer* e = new (ELeave) CHuiFxVisualLayer(); |
30 CHuiFxVisualLayer* e = new (ELeave) CHuiFxVisualLayer(); |
31 CleanupStack::PushL(e); |
31 CleanupStack::PushL(e); |
32 e->ConstructL(aVisual); |
32 e->ConstructL(aVisual); |
33 CleanupStack::Pop(e); |
33 CleanupStack::Pop(e); |
34 return e; |
34 return e; |
35 } |
35 } |
36 |
36 |
37 EXPORT_C void CHuiFxVisualLayer::ConstructL(MHuiEffectable& aVisual) |
37 EXPORT_C void CHuiFxVisualLayer::ConstructL(MHuiEffectable* aVisual) |
38 { |
38 { |
39 #ifdef HUIFX_TRACE |
39 #ifdef HUIFX_TRACE |
40 RDebug::Print(_L("CHuiFxVisualLayer::ConstructL - 0x%x "), this); |
40 RDebug::Print(_L("CHuiFxVisualLayer::ConstructL - 0x%x "), this); |
41 #endif |
41 #endif |
42 CHuiFxLayer::ConstructL( ELayerTypeVisual ); |
42 CHuiFxLayer::ConstructL( ELayerTypeVisual ); |
43 iParameterManager = CHuiFxParameterManager::NewL(); |
43 iParameterManager = CHuiFxParameterManager::NewL(); |
44 iVisual = &aVisual; |
44 iVisual = aVisual; |
45 iSrcType = EVisualSrcVisual; |
45 iSrcType = EVisualSrcVisual; |
46 iExtBitmapFile = NULL; |
46 iExtBitmapFile = NULL; |
47 |
47 |
48 iTranslationX = 0.0f; |
48 iTranslationX = 0.0f; |
49 iTranslationY = 0.0f; |
49 iTranslationY = 0.0f; |