|
1 /* |
|
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: implementation of the control drawer handling data for control |
|
15 * transitions. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #include "tfxalfplugin.h" |
|
22 #include "../../servercore/inc/alfwindow.h" |
|
23 #include "../../servercore/inc/alfwindowbuffer.h" |
|
24 #include "../../servercore/inc/alfwindowmanager.h" |
|
25 |
|
26 CAlfWindowFxPlugin* CTfxAlfPlugin::CreateL(TInt aAlfBufferFormat) |
|
27 { |
|
28 return new (ELeave) CTfxAlfPlugin(); |
|
29 } |
|
30 |
|
31 CTfxAlfPlugin::CTfxAlfPlugin() : iWinId(0,0) |
|
32 { |
|
33 |
|
34 } |
|
35 |
|
36 CTfxAlfPlugin::~CTfxAlfPlugin() |
|
37 { |
|
38 |
|
39 } |
|
40 |
|
41 void CTfxAlfPlugin::PrepareFrameL(TUint aEstimatedFrameInterval) |
|
42 { |
|
43 TInt a = 1; |
|
44 |
|
45 /* |
|
46 TUint8* ptr = (TUint8*)iAlfBuffer->BufferPtr(); |
|
47 TInt stride = iAlfBuffer->Stride(); |
|
48 TSize size = iAlfBuffer->Size(); |
|
49 |
|
50 for(TInt y = size.iHeight; y > 0; y--) |
|
51 { |
|
52 TUint32* scanline = (TUint32*)ptr; |
|
53 for(TInt x = size.iWidth; x > 0; x--) |
|
54 { |
|
55 *(scanline++) = x&(y+iFrames)&0xffff00ff; |
|
56 } |
|
57 ptr += stride; |
|
58 } |
|
59 TRegionFix<1> reg(TRect(TPoint(0,0),size)); |
|
60 iAlfWindow->ContentReady(iAlfBuffer,reg); |
|
61 |
|
62 if(0 == --iFrames) |
|
63 { |
|
64 //WindowManager()->Release(iWinId); |
|
65 WindowManager()->DestroyWindow(*iAlfWindow); |
|
66 } |
|
67 */ |
|
68 } |
|
69 |
|
70 void CTfxAlfPlugin::WindowUpdated(TInt aWindowId, TInt aEventType) |
|
71 { |
|
72 if(aWindowId == iWinId.iWindowIdentifer) |
|
73 { |
|
74 // ... |
|
75 |
|
76 } |
|
77 } |
|
78 |
|
79 /** Synch message from client */ |
|
80 void CTfxAlfPlugin::HandleMessageL(const TDesC8& aMessage, TPtr8& aResponse) |
|
81 { |
|
82 } |
|
83 |
|
84 /** Asynch message from client */ |
|
85 void CTfxAlfPlugin::HandleMessageL(const TDesC8& aMessage, const RMessage2& aClientMessage) |
|
86 { |
|
87 |
|
88 } |
|
89 |
|
90 /** Cancel asynch message(s) from client */ |
|
91 void CTfxAlfPlugin::CancelMessage(TInt aMessageId) |
|
92 { |
|
93 |
|
94 } |
|
95 |