|
1 /* |
|
2 * Copyright (c) 2008 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <w32std.h> |
|
19 |
|
20 // ----------------------------------------------------------------------------- |
|
21 // CWindowGc |
|
22 // ----------------------------------------------------------------------------- |
|
23 // |
|
24 CWindowGc::CWindowGc(CWsScreenDevice *aDevice) |
|
25 { |
|
26 |
|
27 } |
|
28 CWindowGc::~CWindowGc() |
|
29 { |
|
30 |
|
31 } |
|
32 |
|
33 void CWindowGc::Activate( RDrawableWindow &aDevice ) |
|
34 { |
|
35 |
|
36 } |
|
37 void CWindowGc::SetBrushStyle( TBrushStyle aBrushStyle ) |
|
38 { |
|
39 |
|
40 } |
|
41 void CWindowGc::SetBrushColor( const TRgb &aColor ) |
|
42 { |
|
43 |
|
44 } |
|
45 void CWindowGc::Clear( const TRect &aRect) |
|
46 { |
|
47 |
|
48 } |
|
49 void CWindowGc::SetDrawMode( TDrawMode aDrawingMode ) |
|
50 { |
|
51 |
|
52 } |
|
53 void CWindowGc::Deactivate() |
|
54 { |
|
55 |
|
56 }/* |
|
57 TInt CWindowGc::APIExtension(TUid aUid, TAny*& aOutput, TAny* aInput) |
|
58 { |
|
59 |
|
60 } |
|
61 void CWindowGc::Reserved_CGraphicsContext_2() |
|
62 { |
|
63 |
|
64 } |
|
65 void CWindowGc::Reserved_CBitmapContext_1() |
|
66 { |
|
67 |
|
68 } |
|
69 void CWindowGc::Reserved_CBitmapContext_2() |
|
70 { |
|
71 |
|
72 } |
|
73 void CWindowGc::Reserved_CBitmapContext_3() |
|
74 { |
|
75 |
|
76 } |
|
77 void CWindowGc::Reserved_CWindowGc_3() |
|
78 { |
|
79 |
|
80 } |
|
81 void CWindowGc::Reserved_CWindowGc_4() |
|
82 { |
|
83 |
|
84 } |
|
85 void CWindowGc::Reserved_CWindowGc_5() |
|
86 { |
|
87 |
|
88 } |
|
89 */ |
|
90 // ----------------------------------------------------------------------------- |
|
91 // CWsScreenDevice |
|
92 // ----------------------------------------------------------------------------- |
|
93 // |
|
94 CWsScreenDevice::CWsScreenDevice(RWsSession &/*aWs*/) |
|
95 { |
|
96 |
|
97 } |
|
98 |
|
99 CWsScreenDevice::~CWsScreenDevice() |
|
100 { |
|
101 |
|
102 } |
|
103 |
|
104 TInt CWsScreenDevice::Construct( TInt /*aDefaultScreenNumber*/ ) |
|
105 { |
|
106 return KErrNone; |
|
107 } |
|
108 TDisplayMode CWsScreenDevice::DisplayMode() const |
|
109 { |
|
110 return EColor16MU; |
|
111 } |
|
112 |
|
113 TInt CWsScreenDevice::CreateContext(CGraphicsContext *&aGc) |
|
114 { |
|
115 CWindowGc* gc = new CWindowGc(NULL); |
|
116 aGc = gc; |
|
117 return gc != NULL ? KErrNone : KErrNoMemory; |
|
118 } |
|
119 |
|
120 TInt CWsScreenDevice::CurrentScreenMode() const |
|
121 { |
|
122 |
|
123 } |
|
124 |
|
125 void CWsScreenDevice::GetScreenModeSizeAndRotation(TInt aMode, TPixelsTwipsAndRotation &aSizeAndRotation) const |
|
126 { |
|
127 |
|
128 } |
|
129 // ----------------------------------------------------------------------------- |
|
130 // RWindow |
|
131 // ----------------------------------------------------------------------------- |
|
132 // |
|
133 RWindow::RWindow(RWsSession &aWs) |
|
134 { |
|
135 |
|
136 } |
|
137 TInt RWindow::Construct(const RWindowTreeNode &parent,TUint32 aHandle) |
|
138 { |
|
139 return KErrNone; |
|
140 } |
|
141 void RWindow::BeginRedraw(const TRect &aRect) |
|
142 { |
|
143 |
|
144 } |
|
145 void RWindow::EndRedraw() |
|
146 { |
|
147 |
|
148 } |
|
149 void RWindow::Invalidate(const TRect &aRect) |
|
150 { |
|
151 |
|
152 } |
|
153 void RWindow::SetSize(const TSize &size) |
|
154 { |
|
155 |
|
156 } |
|
157 |
|
158 |
|
159 // ----------------------------------------------------------------------------- |
|
160 // RWindowBase |
|
161 // ----------------------------------------------------------------------------- |
|
162 // |
|
163 RWindowBase::RWindowBase() |
|
164 { |
|
165 |
|
166 } |
|
167 void RWindowBase::Activate() |
|
168 { |
|
169 |
|
170 } |
|
171 void RWindowBase::SetPosition(const TPoint &point) |
|
172 { |
|
173 |
|
174 } |
|
175 TDisplayMode RWindowBase::DisplayMode() const |
|
176 { |
|
177 return EColor16MU; |
|
178 } |
|
179 |
|
180 // ----------------------------------------------------------------------------- |
|
181 // RWsSession |
|
182 // ----------------------------------------------------------------------------- |
|
183 // |
|
184 RWsSession::RWsSession() |
|
185 { |
|
186 |
|
187 } |
|
188 TInt RWsSession::Connect() |
|
189 { |
|
190 return KErrNone; |
|
191 } |
|
192 void RWsSession::Close() |
|
193 { |
|
194 |
|
195 } |
|
196 |
|
197 TInt RWsSession::GetFocusWindowGroup() const |
|
198 { |
|
199 return 1; |
|
200 } |
|
201 void RWsSession::Flush() |
|
202 { |
|
203 |
|
204 } |
|
205 void RWsSession::RedrawReady(TRequestStatus *aStat) |
|
206 { |
|
207 User::RequestComplete(aStat, KErrNone); |
|
208 } |
|
209 void RWsSession::RedrawReadyCancel() |
|
210 { |
|
211 |
|
212 } |
|
213 void RWsSession::GetRedraw(TWsRedrawEvent &aEvent) |
|
214 { |
|
215 |
|
216 } |
|
217 |
|
218 // ----------------------------------------------------------------------------- |
|
219 // RWindowTreeNode |
|
220 // ----------------------------------------------------------------------------- |
|
221 // |
|
222 RWindowTreeNode::RWindowTreeNode() |
|
223 { |
|
224 |
|
225 } |
|
226 void RWindowTreeNode::SetOrdinalPosition(TInt aPos) |
|
227 { |
|
228 |
|
229 } |
|
230 void RWindowTreeNode::SetOrdinalPosition(TInt aPos,TInt aOrdinalPriority) |
|
231 { |
|
232 |
|
233 } |
|
234 |
|
235 // ----------------------------------------------------------------------------- |
|
236 // RWindowGroup |
|
237 // ----------------------------------------------------------------------------- |
|
238 // |
|
239 RWindowGroup::RWindowGroup() |
|
240 { |
|
241 |
|
242 } |
|
243 RWindowGroup::RWindowGroup(RWsSession &aWs) |
|
244 { |
|
245 |
|
246 } |
|
247 TInt RWindowGroup::Construct(TUint32 aClientHandle,TBool aIsFocusable) |
|
248 { |
|
249 return KErrNone; |
|
250 } |
|
251 TInt RWindowGroup::SetName(const TDesC &aName) |
|
252 { |
|
253 return KErrNone; |
|
254 } |
|
255 |
|
256 // ----------------------------------------------------------------------------- |
|
257 // RDrawableWindow |
|
258 // ----------------------------------------------------------------------------- |
|
259 // |
|
260 RDrawableWindow::RDrawableWindow() |
|
261 { |
|
262 |
|
263 } |
|
264 |
|
265 // ----------------------------------------------------------------------------- |
|
266 // MWsClientClass |
|
267 // ----------------------------------------------------------------------------- |
|
268 // |
|
269 MWsClientClass::MWsClientClass() |
|
270 { |
|
271 |
|
272 } |
|
273 |
|
274 // ----------------------------------------------------------------------------- |
|
275 // MGraphicsDeviceMap |
|
276 // ----------------------------------------------------------------------------- |
|
277 // |
|
278 MGraphicsDeviceMap::MGraphicsDeviceMap() |
|
279 { |
|
280 |
|
281 } |
|
282 |
|
283 MGraphicsDeviceMap::~MGraphicsDeviceMap() |
|
284 { |
|
285 |
|
286 } |
|
287 |
|
288 // ----------------------------------------------------------------------------- |
|
289 // CDirectScreenAccess |
|
290 // ----------------------------------------------------------------------------- |
|
291 // |
|
292 CDirectScreenAccess* CDirectScreenAccess::NewL( |
|
293 RWsSession& aWs,CWsScreenDevice& aScreenDevice, |
|
294 RWindowBase& aWin,MDirectScreenAccess& aAbort) |
|
295 { |
|
296 CDirectScreenAccess* self = new (ELeave) CDirectScreenAccess(aWs,&aScreenDevice,aWin,aAbort); |
|
297 CleanupStack::PushL(self); |
|
298 self->ConstructL(aWs,EFalse); |
|
299 CleanupStack::Pop(self); |
|
300 return self; |
|
301 } |
|
302 CDirectScreenAccess* CDirectScreenAccess::NewL( |
|
303 RWsSession& aWs,CWsScreenDevice& aScreenDevice, |
|
304 RWindowBase& aWin,MDirectScreenAccess& aAbort,TBool aRegionTrackingOnly) |
|
305 { |
|
306 CDirectScreenAccess* self = new (ELeave) CDirectScreenAccess(aWs,&aScreenDevice,aWin,aAbort); |
|
307 CleanupStack::PushL(self); |
|
308 self->ConstructL(aWs,EFalse); |
|
309 CleanupStack::Pop(self); |
|
310 return self; |
|
311 } |
|
312 /* |
|
313 CDirectScreenAccess::CDirectScreenAccess( |
|
314 RWsSession& aWs,CWsScreenDevice* aScreenDevice, |
|
315 RWindowBase& aWindow,MDirectScreenAccess& aAbort) : |
|
316 CActive( EPriorityStandard ), |
|
317 iWindow(aWindow), |
|
318 iAbort(aAbort) |
|
319 { |
|
320 |
|
321 }*/ |
|
322 void CDirectScreenAccess::ConstructL(RWsSession& aWs,TBool aRegionTrackingOnly) |
|
323 { |
|
324 iDrawingRegion = new (ELeave) RRegion; |
|
325 iScreenDevice = CFbsScreenDevice::NewL(_L("aa"), EColor16M ); |
|
326 iGc = CFbsBitGc::NewL(); |
|
327 } |
|
328 CDirectScreenAccess::~CDirectScreenAccess() |
|
329 { |
|
330 delete iGc; |
|
331 delete iScreenDevice; |
|
332 delete iDrawingRegion; |
|
333 } |
|
334 void CDirectScreenAccess::StartL() |
|
335 { |
|
336 |
|
337 } |
|
338 |
|
339 void CDirectScreenAccess::DoCancel() |
|
340 { |
|
341 |
|
342 } |
|
343 void CDirectScreenAccess::RunL() |
|
344 { |
|
345 |
|
346 } |
|
347 |
|
348 // ----------------------------------------------------------------------------- |
|
349 // CFbsScreenDevice |
|
350 // ----------------------------------------------------------------------------- |
|
351 // |
|
352 CFbsScreenDevice* CFbsScreenDevice::NewL(const TDesC& aLibname,TDisplayMode aDispMode) |
|
353 { |
|
354 return new (ELeave) CFbsScreenDevice(0); |
|
355 } |
|
356 CFbsScreenDevice::CFbsScreenDevice(TInt aScreenNo) |
|
357 { |
|
358 |
|
359 } |
|
360 CFbsScreenDevice::~CFbsScreenDevice() |
|
361 { |
|
362 |
|
363 } |
|
364 |
|
365 void CFbsScreenDevice::Update() |
|
366 { |
|
367 |
|
368 } |
|
369 |
|
370 // ----------------------------------------------------------------------------- |
|
371 // CFbsDevice |
|
372 // ----------------------------------------------------------------------------- |
|
373 // |
|
374 CFbsDevice::CFbsDevice() |
|
375 { |
|
376 |
|
377 } |
|
378 |
|
379 CFbsDevice::~CFbsDevice() |
|
380 { |
|
381 |
|
382 } |
|
383 // ----------------------------------------------------------------------------- |
|
384 // CFbsBitGc |
|
385 // ----------------------------------------------------------------------------- |
|
386 // |
|
387 CFbsBitGc* CFbsBitGc::NewL() |
|
388 { |
|
389 return new (ELeave) CFbsBitGc; |
|
390 } |
|
391 CFbsBitGc::CFbsBitGc() |
|
392 { |
|
393 |
|
394 } |
|
395 CFbsBitGc::~CFbsBitGc() |
|
396 { |
|
397 |
|
398 } |
|
399 void CFbsBitGc::DrawRect(const TRect& aRect) |
|
400 { |
|
401 |
|
402 } |
|
403 void CFbsBitGc::SetClippingRegion(const TRegion* aRegion) |
|
404 { |
|
405 |
|
406 } |
|
407 void CFbsBitGc::SetBrushColor(const TRgb& aColor) |
|
408 { |
|
409 |
|
410 } |
|
411 void CFbsBitGc::SetBrushOrigin(const TPoint& aOrigin) |
|
412 { |
|
413 |
|
414 } |
|
415 void CFbsBitGc::SetBrushStyle(TBrushStyle aBrushStyle) |
|
416 { |
|
417 |
|
418 } |
|
419 |
|
420 // ----------------------------------------------------------------------------- |
|
421 // CFbsBitmap |
|
422 // ----------------------------------------------------------------------------- |
|
423 // |
|
424 CFbsBitmap::CFbsBitmap() |
|
425 { |
|
426 |
|
427 } |
|
428 |
|
429 CFbsBitmap::~CFbsBitmap() |
|
430 { |
|
431 |
|
432 } |
|
433 |
|
434 TInt CFbsBitmap::Create(const TSize& aSizeInPixels,TDisplayMode aDispMode) |
|
435 { |
|
436 return KErrNone; |
|
437 } |