|
1 /* |
|
2 * Copyright (c) 2009 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: Definition of CHuiCanvasDebugWsGc. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "huicanvasdebugwsgc.h" |
|
20 #include "huicanvaswsgc.h" |
|
21 #include "alfcommanddebug.h" |
|
22 |
|
23 void CHuiCanvasDebugWsGc::WsBitBltL(TInt aBitmapHandle, TPoint aPoint) |
|
24 { |
|
25 iCommandDebugger.SetHandle(aBitmapHandle); |
|
26 iCommandDebugger.SetPoint(aPoint); |
|
27 iCommandDebugger.Print(); |
|
28 iCanvasWsGc->WsBitBltL(aBitmapHandle, aPoint); |
|
29 } |
|
30 |
|
31 void CHuiCanvasDebugWsGc::WsBitBltRectL(TInt aBitmapHandle, TPoint aPoint, |
|
32 TRect aRect) |
|
33 { |
|
34 iCommandDebugger.SetHandle(aBitmapHandle); |
|
35 iCommandDebugger.SetRect(aRect); |
|
36 iCommandDebugger.SetPoint(aPoint); |
|
37 iCommandDebugger.Print(); |
|
38 iCanvasWsGc->WsBitBltRectL( |
|
39 aBitmapHandle, |
|
40 aPoint, |
|
41 aRect); |
|
42 } |
|
43 |
|
44 void CHuiCanvasDebugWsGc::WsBitBltMaskedL(TInt aBitmapHandle, |
|
45 TInt aMaskHandle, TInt aInvertMask, TPoint aPoint, TRect aRect) |
|
46 { |
|
47 iCommandDebugger.SetHandle(aBitmapHandle); |
|
48 iCommandDebugger.SetRect(aRect); |
|
49 iCommandDebugger.SetPoint(aPoint); |
|
50 iCommandDebugger.Print(); |
|
51 |
|
52 iCanvasWsGc->WsBitBltMaskedL(aBitmapHandle, aMaskHandle, aInvertMask, |
|
53 aPoint, aRect); |
|
54 } |
|
55 |
|
56 void CHuiCanvasDebugWsGc::WsBitBltMaskedPointL(TInt aBitmapHandle, |
|
57 TInt aMaskHandle, TPoint aPoint1, TPoint aPoint2, TRect aRect) |
|
58 { |
|
59 iCommandDebugger.Print(); |
|
60 iCanvasWsGc->WsBitBltMaskedPointL(aBitmapHandle, aMaskHandle, aPoint1, |
|
61 aPoint2, aRect); |
|
62 } |
|
63 |
|
64 void CHuiCanvasDebugWsGc::WsResetClippingRegionL() |
|
65 { |
|
66 iCommandDebugger.Print(); |
|
67 iCanvasWsGc->WsResetClippingRegionL(); |
|
68 } |
|
69 |
|
70 void CHuiCanvasDebugWsGc::WsClearL() |
|
71 { |
|
72 iCommandDebugger.Print(); |
|
73 iCanvasWsGc->WsClearL(); |
|
74 } |
|
75 |
|
76 void CHuiCanvasDebugWsGc::WsClearRectL(TRect& aRect) |
|
77 { |
|
78 iCommandDebugger.SetRect(aRect); |
|
79 iCommandDebugger.Print(); |
|
80 iCanvasWsGc->WsClearRectL(aRect); |
|
81 } |
|
82 void CHuiCanvasDebugWsGc::WsResetBrushPatternL() |
|
83 { |
|
84 iCommandDebugger.Print(); |
|
85 iCanvasWsGc->WsResetBrushPatternL(); |
|
86 } |
|
87 |
|
88 void CHuiCanvasDebugWsGc::WsResetFontL() |
|
89 { |
|
90 iCommandDebugger.Print(); |
|
91 iCanvasWsGc->WsResetFontL(); |
|
92 } |
|
93 ; |
|
94 void CHuiCanvasDebugWsGc::WsDrawArcL(TPoint aPoint1, TPoint aPoint2, |
|
95 TRect aRect) |
|
96 { |
|
97 iCommandDebugger.Print(); |
|
98 iCanvasWsGc->WsDrawArcL(aPoint1, aPoint2, aRect); |
|
99 } |
|
100 |
|
101 void CHuiCanvasDebugWsGc::WsDrawPieL(TPoint aPoint1, TPoint aPoint2, |
|
102 TRect aRect) |
|
103 { |
|
104 iCommandDebugger.Print(); |
|
105 iCanvasWsGc->WsDrawPieL(aPoint1, aPoint2, aRect); |
|
106 } |
|
107 |
|
108 void CHuiCanvasDebugWsGc::WsDrawBitmap1L(TInt aBitmapHandle, TRect aRect) |
|
109 { |
|
110 iCommandDebugger.Print(); |
|
111 iCanvasWsGc->WsDrawBitmap1L(aBitmapHandle, aRect); |
|
112 } |
|
113 |
|
114 void CHuiCanvasDebugWsGc::WsDrawBitmap2L(TInt aBitmapHandle, TRect aRect1, |
|
115 TRect aRect2) |
|
116 { |
|
117 iCommandDebugger.Print(); |
|
118 iCanvasWsGc->WsDrawBitmap2L(aBitmapHandle, aRect1, aRect2); |
|
119 } |
|
120 |
|
121 void CHuiCanvasDebugWsGc::WsDrawBitmap3L(TInt aBitmapHandle, TPoint aPoint) |
|
122 { |
|
123 iCommandDebugger.Print(); |
|
124 iCanvasWsGc->WsDrawBitmap3L(aBitmapHandle, aPoint); |
|
125 } |
|
126 void CHuiCanvasDebugWsGc::WsDrawBitmapMaskedL(TInt aBitmapHandle, |
|
127 TInt aMaskHandle, TInt aInvertMask, TRect& aRect1, TRect& aRect2) |
|
128 { |
|
129 iCommandDebugger.Print(); |
|
130 iCanvasWsGc->WsDrawBitmapMaskedL(aBitmapHandle, |
|
131 aMaskHandle, |
|
132 aInvertMask, |
|
133 aRect1, aRect2); |
|
134 } |
|
135 |
|
136 void CHuiCanvasDebugWsGc::WsDrawRoundRectL(TPoint aPoint, TRect& aRect) |
|
137 { |
|
138 iCommandDebugger.Print(); |
|
139 iCanvasWsGc->WsDrawRoundRectL(aPoint, aRect); |
|
140 } |
|
141 |
|
142 void CHuiCanvasDebugWsGc::WsDrawPolyLineL(CArrayFix<TPoint>* aPointerArray) |
|
143 { |
|
144 iCommandDebugger.Print(); |
|
145 iCanvasWsGc->WsDrawPolyLineL(aPointerArray); |
|
146 } |
|
147 |
|
148 void CHuiCanvasDebugWsGc::WsDrawPolyLineNoEndPointL(TPoint* aPointerArray, |
|
149 TInt aCount) |
|
150 { |
|
151 iCommandDebugger.Print(); |
|
152 iCanvasWsGc->WsDrawPolyLineNoEndPointL(aPointerArray, aCount); |
|
153 } |
|
154 |
|
155 void CHuiCanvasDebugWsGc::WsDrawPolygonL(CArrayFix<TPoint>* aPointerArray, |
|
156 TInt aFillRule) |
|
157 { |
|
158 iCommandDebugger.Print(); |
|
159 iCanvasWsGc->WsDrawPolygonL(aPointerArray, aFillRule); |
|
160 } |
|
161 |
|
162 void CHuiCanvasDebugWsGc::WsDrawEllipseL(TRect& aRect) |
|
163 { |
|
164 iCommandDebugger.Print(); |
|
165 iCanvasWsGc->WsDrawEllipseL(aRect); |
|
166 } |
|
167 |
|
168 void CHuiCanvasDebugWsGc::WsDrawLineL(TPoint& aStart, TPoint& aEnd) |
|
169 { |
|
170 iCommandDebugger.SetPoint( aStart ); |
|
171 iCommandDebugger.SetPoint( aEnd ); |
|
172 iCommandDebugger.Print(); |
|
173 iCanvasWsGc->WsDrawLineL( aStart, aEnd); |
|
174 } |
|
175 |
|
176 void CHuiCanvasDebugWsGc::WsDrawLineToL(TPoint& aPoint) |
|
177 { |
|
178 iCommandDebugger.SetPoint( aPoint ); |
|
179 iCommandDebugger.Print(); |
|
180 iCanvasWsGc->WsDrawLineToL(aPoint); |
|
181 } |
|
182 |
|
183 void CHuiCanvasDebugWsGc::WsDrawLineByL(TPoint& aPoint) |
|
184 { |
|
185 iCommandDebugger.Print(); |
|
186 iCanvasWsGc->WsDrawLineByL(aPoint); |
|
187 } |
|
188 |
|
189 void CHuiCanvasDebugWsGc::WsDrawRectL(TRect& aRect) |
|
190 { |
|
191 iCommandDebugger.SetRect( aRect ); |
|
192 iCommandDebugger.Print(); |
|
193 iCanvasWsGc->WsDrawRectL(aRect); |
|
194 } |
|
195 |
|
196 void CHuiCanvasDebugWsGc::WsDrawText1L(TPtr& aTextValue, |
|
197 THuiCanvasTextParameters& aTextParameters) |
|
198 { |
|
199 iCommandDebugger.SetText( aTextValue ); |
|
200 iCommandDebugger.Print(); |
|
201 iCanvasWsGc->WsDrawText1L(aTextValue, aTextParameters); |
|
202 } |
|
203 |
|
204 void CHuiCanvasDebugWsGc::WsDrawText2L(TPtr& aTextValue, TPoint& aPoint, |
|
205 THuiCanvasTextParameters& aTextParameters) |
|
206 { |
|
207 iCommandDebugger.SetText( aTextValue ); |
|
208 iCommandDebugger.Print(); |
|
209 iCanvasWsGc->WsDrawText2L(aTextValue, aPoint, aTextParameters); |
|
210 } |
|
211 |
|
212 void CHuiCanvasDebugWsGc::WsDrawText3L(TPtr& aTextValue, TRect& aRect, |
|
213 THuiCanvasTextParameters& aTextParameters) |
|
214 { |
|
215 iCommandDebugger.SetText( aTextValue ); |
|
216 iCommandDebugger.Print(); |
|
217 |
|
218 iCanvasWsGc->WsDrawText3L(aTextValue, aRect, aTextParameters); |
|
219 } |
|
220 |
|
221 void CHuiCanvasDebugWsGc::WsDrawText4L(TPtr& aTextValue, TRect& aRect, |
|
222 TInt aBaselineOffset, TInt aTextAlign, TInt aTextMargin, |
|
223 THuiCanvasTextParameters& aTextParameters) |
|
224 { |
|
225 iCommandDebugger.SetText(aTextValue); |
|
226 iCommandDebugger.SetRect(aRect); |
|
227 iCommandDebugger.Print(); |
|
228 iCanvasWsGc->WsDrawText4L(aTextValue, aRect, |
|
229 aBaselineOffset, // textBaselineOffset |
|
230 aTextAlign, // textAlign |
|
231 aTextMargin, // textMargin, |
|
232 aTextParameters); |
|
233 } |
|
234 |
|
235 void CHuiCanvasDebugWsGc::WsDrawText5L(TPtr& aTextValue, TRect& aRect, |
|
236 TInt aBaselineOffset, TInt aTextAlign, TInt aTextMargin, |
|
237 TInt aTextWidth, THuiCanvasTextParameters& aTextParameters) |
|
238 { |
|
239 iCommandDebugger.SetText(aTextValue); |
|
240 iCommandDebugger.SetRect(aRect); |
|
241 iCommandDebugger.Print(); |
|
242 |
|
243 iCanvasWsGc->WsDrawText5L(aTextValue, aRect, |
|
244 aBaselineOffset, // textBaselineOffset |
|
245 aTextAlign, // textAlign |
|
246 aTextMargin, // textMargin, |
|
247 aTextWidth, // textWidth |
|
248 aTextParameters); |
|
249 } |
|
250 |
|
251 void CHuiCanvasDebugWsGc::WsDrawTextVertical1L(TPtr& aTextValue, |
|
252 TInt aTextUp, THuiCanvasTextParameters& aTextParameters) |
|
253 { |
|
254 iCommandDebugger.SetText(aTextValue); |
|
255 iCommandDebugger.Print(); |
|
256 |
|
257 iCanvasWsGc->WsDrawTextVertical1L(aTextValue, aTextUp, |
|
258 aTextParameters); |
|
259 } |
|
260 |
|
261 void CHuiCanvasDebugWsGc::WsDrawTextVertical2L(TPtr& aTextValue, |
|
262 TInt aTextUp, TPoint& aPoint, |
|
263 THuiCanvasTextParameters& aTextParameters) |
|
264 { |
|
265 iCommandDebugger.SetText(aTextValue); |
|
266 iCommandDebugger.SetPoint( aPoint ); |
|
267 iCommandDebugger.Print(); |
|
268 |
|
269 iCanvasWsGc->WsDrawTextVertical2L(aTextValue, aTextUp, aPoint, |
|
270 aTextParameters); |
|
271 } |
|
272 |
|
273 void CHuiCanvasDebugWsGc::WsDrawTextVertical3L(TPtr& aTextValue, |
|
274 TInt aTextUp, TRect& aRect, THuiCanvasTextParameters& aTextParameters) |
|
275 { |
|
276 iCommandDebugger.SetText(aTextValue); |
|
277 iCommandDebugger.Print(); |
|
278 iCanvasWsGc->WsDrawTextVertical3L(aTextValue, aTextUp, aRect, |
|
279 aTextParameters); |
|
280 } |
|
281 |
|
282 void CHuiCanvasDebugWsGc::WsDrawTextVertical4L(TPtr& aTextValue, |
|
283 TRect& aRect, TInt aBaselineOffset, TInt aTextUp, TInt aTextAlign, |
|
284 TInt aTextMargin, THuiCanvasTextParameters& aTextParameters) |
|
285 { |
|
286 iCommandDebugger.SetText(aTextValue); |
|
287 iCommandDebugger.Print(); |
|
288 |
|
289 iCanvasWsGc->WsDrawTextVertical4L(aTextValue, aRect, aBaselineOffset, |
|
290 aTextUp, aTextAlign, aTextMargin, aTextParameters); |
|
291 } |
|
292 |
|
293 void CHuiCanvasDebugWsGc::WsDrawTextVertical5L(TPtr& aTextValue, |
|
294 TRect& aRect, TInt aBaselineOffset, TInt aTextUp, TInt aTextAlign, |
|
295 TInt aTextMargin, TInt aTextWidth, |
|
296 THuiCanvasTextParameters& aTextParameters) |
|
297 { |
|
298 iCommandDebugger.SetText(aTextValue); |
|
299 iCommandDebugger.Print(); |
|
300 |
|
301 iCanvasWsGc->WsDrawTextVertical5L(aTextValue, aRect, aBaselineOffset, |
|
302 aTextUp, aTextAlign, aTextMargin, aTextWidth, aTextParameters); |
|
303 } |
|
304 |
|
305 void CHuiCanvasDebugWsGc::WsMoveToL(TPoint& aPoint) |
|
306 { |
|
307 iCommandDebugger.SetPoint(aPoint); |
|
308 iCommandDebugger.Print(); |
|
309 iCanvasWsGc->WsMoveToL(aPoint); |
|
310 } |
|
311 |
|
312 void CHuiCanvasDebugWsGc::WsMoveByL(TPoint& aPoint) |
|
313 { |
|
314 iCommandDebugger.SetPoint(aPoint); |
|
315 iCommandDebugger.Print(); |
|
316 iCanvasWsGc->WsMoveByL(aPoint); |
|
317 } |
|
318 |
|
319 void CHuiCanvasDebugWsGc::WsPlotL(TPoint& aPoint) |
|
320 { |
|
321 iCommandDebugger.SetPoint(aPoint); |
|
322 iCommandDebugger.Print(); |
|
323 |
|
324 iCanvasWsGc->WsPlotL(aPoint); |
|
325 } |
|
326 |
|
327 void CHuiCanvasDebugWsGc::WsResetL() |
|
328 { |
|
329 iCommandDebugger.Print(); |
|
330 |
|
331 iCanvasWsGc->WsResetL(); |
|
332 } |
|
333 |
|
334 void CHuiCanvasDebugWsGc::WsSetBrushColorL(TRgb aColor) |
|
335 { |
|
336 iCommandDebugger.SetColor(aColor); |
|
337 iCommandDebugger.Print(); |
|
338 iCanvasWsGc->WsSetBrushColorL(aColor); |
|
339 } |
|
340 |
|
341 void CHuiCanvasDebugWsGc::WsSetBrushOriginL(TPoint& aPoint) |
|
342 { |
|
343 iCommandDebugger.SetPoint(aPoint); |
|
344 iCommandDebugger.Print(); |
|
345 iCanvasWsGc->WsSetBrushOriginL(aPoint); |
|
346 } |
|
347 ; |
|
348 void CHuiCanvasDebugWsGc::WsSetBrushStyleL(TInt aStyle) |
|
349 { |
|
350 iCommandDebugger.Print(); |
|
351 iCanvasWsGc->WsSetBrushStyleL(aStyle); |
|
352 } |
|
353 ; |
|
354 void CHuiCanvasDebugWsGc::WsSetClippingRegionL(RRegion& aRegion) |
|
355 { |
|
356 iCommandDebugger.SetRegion(aRegion); |
|
357 iCommandDebugger.Print(); |
|
358 iCanvasWsGc->WsSetClippingRegionL(aRegion); |
|
359 } |
|
360 |
|
361 void CHuiCanvasDebugWsGc::WsSetDrawModeL(TInt aDrawMode) |
|
362 { |
|
363 iCommandDebugger.SetHandle(aDrawMode); |
|
364 iCommandDebugger.Print(); |
|
365 iCanvasWsGc->WsSetDrawModeL(aDrawMode); |
|
366 } |
|
367 |
|
368 void CHuiCanvasDebugWsGc::WsSetOriginL(TPoint& aOrigin) |
|
369 { |
|
370 iCommandDebugger.SetPoint( aOrigin ); |
|
371 iCommandDebugger.Print(); |
|
372 iCanvasWsGc->WsSetOriginL(aOrigin); |
|
373 |
|
374 } |
|
375 void CHuiCanvasDebugWsGc::WsSetPenColorL(TRgb aColor) |
|
376 { |
|
377 iCommandDebugger.SetColor(aColor); |
|
378 iCommandDebugger.Print(); |
|
379 iCanvasWsGc->WsSetPenColorL(aColor); |
|
380 } |
|
381 |
|
382 void CHuiCanvasDebugWsGc::WsSetPenStyleL(TInt aStyle) |
|
383 { |
|
384 iCommandDebugger.SetHandle( aStyle ); |
|
385 iCommandDebugger.Print(); |
|
386 iCanvasWsGc->WsSetPenStyleL(aStyle); |
|
387 } |
|
388 |
|
389 void CHuiCanvasDebugWsGc::WsSetPenSizeL(TInt aWidth, TInt aHeight) |
|
390 { |
|
391 iCommandDebugger.Print(); |
|
392 iCanvasWsGc->WsSetPenSizeL( aWidth, aHeight); |
|
393 } |
|
394 |
|
395 void CHuiCanvasDebugWsGc::WsSetTextShadowColorL(TRgb aColor) |
|
396 { |
|
397 iCommandDebugger.SetColor(aColor); |
|
398 iCommandDebugger.Print(); |
|
399 iCanvasWsGc->WsSetTextShadowColorL(aColor); |
|
400 } |
|
401 ; |
|
402 void CHuiCanvasDebugWsGc::WsSetCharJustificationL(TInt aExcessiveWidth, |
|
403 TInt aNumGap) |
|
404 { |
|
405 iCommandDebugger.Print(); |
|
406 iCanvasWsGc->WsSetCharJustificationL(aExcessiveWidth, aNumGap); |
|
407 } |
|
408 |
|
409 void CHuiCanvasDebugWsGc::WsSetWordJustificationL(TInt aExcessiveWidth, |
|
410 TInt aNumGap) |
|
411 { |
|
412 iCommandDebugger.Print(); |
|
413 iCanvasWsGc->WsSetWordJustificationL(aExcessiveWidth, aNumGap); |
|
414 } |
|
415 |
|
416 void CHuiCanvasDebugWsGc::WsSetUnderlineStyleL(TInt aValue) |
|
417 { |
|
418 iCommandDebugger.Print(); |
|
419 iCanvasWsGc->WsSetUnderlineStyleL( aValue ); |
|
420 } |
|
421 |
|
422 void CHuiCanvasDebugWsGc::WsSetBrushPatternL(TInt aValue) |
|
423 { |
|
424 iCommandDebugger.Print(); |
|
425 |
|
426 iCanvasWsGc->WsSetBrushPatternL(aValue); |
|
427 } |
|
428 |
|
429 // void CHuiCanvasDebugWsGc::SetBrushPattern(TInt aFbsBitmapHandle){}; |
|
430 void CHuiCanvasDebugWsGc::WsSetFontL(TInt aFontId) |
|
431 { |
|
432 iCommandDebugger.SetHandle( aFontId ); |
|
433 iCommandDebugger.Print(); |
|
434 |
|
435 iCanvasWsGc->WsSetFontL(aFontId); |
|
436 } |
|
437 |
|
438 void CHuiCanvasDebugWsGc::WsCopyRectL(TPoint& aPoint, TRect& aRect) |
|
439 { |
|
440 iCommandDebugger.SetPoint( aPoint ); |
|
441 iCommandDebugger.SetRect( aRect ); |
|
442 iCommandDebugger.Print(); |
|
443 iCanvasWsGc->WsCopyRectL(aPoint, aRect); |
|
444 } |
|
445 |
|
446 void CHuiCanvasDebugWsGc::WsCopySettingsL() |
|
447 { |
|
448 iCommandDebugger.Print(); |
|
449 |
|
450 iCanvasWsGc->WsCopySettingsL(); |
|
451 } |
|
452 ; |
|
453 void CHuiCanvasDebugWsGc::WsUpdateJustificationL(TPtr& aTextValue) |
|
454 { |
|
455 iCommandDebugger.SetText( aTextValue ); |
|
456 iCommandDebugger.Print(); |
|
457 |
|
458 iCanvasWsGc->WsUpdateJustificationL(aTextValue); |
|
459 } |
|
460 |
|
461 void CHuiCanvasDebugWsGc::WsUpdateJustificationVerticalL(TInt aValue, |
|
462 TPtr& aTextValue) |
|
463 { |
|
464 iCommandDebugger.Print(); |
|
465 |
|
466 iCanvasWsGc->WsUpdateJustificationVerticalL( aValue , aTextValue); |
|
467 } |
|
468 |
|
469 void CHuiCanvasDebugWsGc::WsSetFontNoDuplicateL(TInt aCurrentFont) |
|
470 { |
|
471 iCommandDebugger.SetHandle( aCurrentFont ); |
|
472 iCommandDebugger.Print(); |
|
473 |
|
474 iCanvasWsGc->WsSetFontNoDuplicateL(aCurrentFont); |
|
475 } |
|
476 |
|
477 |
|
478 void CHuiCanvasDebugWsGc::WsSetClippingRectL(TRect& aRect) |
|
479 { |
|
480 iCommandDebugger.SetRect(aRect); |
|
481 iCommandDebugger.Print(); |
|
482 iCanvasWsGc->WsSetClippingRectL(aRect); |
|
483 } |
|
484 |
|
485 void CHuiCanvasDebugWsGc::WsCancelClippingRectL() |
|
486 { |
|
487 iCommandDebugger.Print(); |
|
488 iCanvasWsGc->WsCancelClippingRectL(); |
|
489 } |
|
490 |
|
491 void CHuiCanvasDebugWsGc::WsSetFadedL(TInt& aFaded) |
|
492 { |
|
493 iCommandDebugger.Print(); |
|
494 iCanvasWsGc->WsSetFadedL(aFaded); |
|
495 } |
|
496 |
|
497 void CHuiCanvasDebugWsGc::WsSetFadingParametersL(TInt aFaded1, TInt aFaded2) |
|
498 { |
|
499 iCommandDebugger.Print(); |
|
500 iCanvasWsGc->WsSetFadingParametersL(aFaded1, aFaded2); |
|
501 } |
|
502 |
|
503 void CHuiCanvasDebugWsGc::WsFadeAreaL(RRegion& aRegion) |
|
504 { |
|
505 iCommandDebugger.Print(); |
|
506 iCanvasWsGc->WsFadeAreaL(aRegion); |
|
507 } |
|
508 |
|
509 void CHuiCanvasDebugWsGc::WsMapColorsL() |
|
510 { |
|
511 iCommandDebugger.Print(); |
|
512 iCanvasWsGc->WsMapColorsL(); |
|
513 } |
|
514 |
|
515 void CHuiCanvasDebugWsGc::WsSetUserDisplayModeL(TInt aMode) |
|
516 { |
|
517 iCommandDebugger.SetHandle(aMode); |
|
518 iCommandDebugger.Print(); |
|
519 iCanvasWsGc->WsSetUserDisplayModeL(aMode); |
|
520 } |
|
521 |
|
522 void CHuiCanvasDebugWsGc::WsUseFontL(TInt aCurrentFont) |
|
523 { |
|
524 iCommandDebugger.SetHandle(aCurrentFont); |
|
525 iCommandDebugger.Print(); |
|
526 iCanvasWsGc->WsUseFontL(aCurrentFont); |
|
527 } |
|
528 |
|
529 void CHuiCanvasDebugWsGc::WsCombinedBitBltMaskedL(TRect aDestinationRect, |
|
530 const RArray<THuiCachedCombinedImageParams>& aBlits) |
|
531 { |
|
532 iCommandDebugger.SetRect(aDestinationRect); |
|
533 iCommandDebugger.Print(); |
|
534 |
|
535 iCanvasWsGc->WsCombinedBitBltMaskedL(aDestinationRect, aBlits ); |
|
536 } |
|
537 |
|
538 |
|
539 void CHuiCanvasDebugWsGc::BeginActionL(TInt aAction, TRect aDisplayRect, |
|
540 const CHuiCanvasVisual& aUser, TBool aIsCachePrepared, const TRegion& aUpdateRegion) |
|
541 { |
|
542 iCanvasWsGc->BeginActionL(aAction, aDisplayRect, aUser, aIsCachePrepared, aUpdateRegion); |
|
543 } |
|
544 |
|
545 void CHuiCanvasDebugWsGc::EndActionL(const TRegion& aUpdateRegion, TBool aUpdateDisplay) |
|
546 { |
|
547 iCanvasWsGc->EndActionL(aUpdateRegion, aUpdateDisplay); |
|
548 } |
|
549 |
|
550 |
|
551 TInt CHuiCanvasDebugWsGc::SetCapturingBufferL(CFbsBitmap* aTarget) |
|
552 { |
|
553 return iCanvasWsGc->SetCapturingBufferL( aTarget ); |
|
554 } |
|
555 |
|
556 CHuiCanvasGc& CHuiCanvasDebugWsGc::CanvasGc() const |
|
557 { |
|
558 return iCanvasWsGc->CanvasGc(); |
|
559 } |
|
560 |
|
561 void CHuiCanvasDebugWsGc::ClearCache() |
|
562 { |
|
563 iCanvasWsGc->ClearCache(); |
|
564 } |
|
565 |
|
566 void CHuiCanvasDebugWsGc::SetRelativeOrientation(CHuiGc::TOrientation aOrientation) |
|
567 { |
|
568 iCanvasWsGc->SetRelativeOrientation(aOrientation); |
|
569 } |
|
570 |
|
571 TBool CHuiCanvasDebugWsGc::IsRenderBufferEnabled() const |
|
572 { |
|
573 return iCanvasWsGc->IsRenderBufferEnabled(); |
|
574 } |
|
575 |
|
576 TBool CHuiCanvasDebugWsGc::IsRenderBufferPrepared() const |
|
577 { |
|
578 return iCanvasWsGc->IsRenderBufferPrepared(); |
|
579 } |
|
580 |
|
581 TBool CHuiCanvasDebugWsGc::IsRenderBufferInitialized() const |
|
582 { |
|
583 return iCanvasWsGc->IsRenderBufferInitialized(); |
|
584 } |
|
585 |
|
586 TInt CHuiCanvasDebugWsGc::EnableRenderbuffer(TBool aEnable) |
|
587 { |
|
588 return iCanvasWsGc->EnableRenderbuffer(aEnable); |
|
589 } |
|
590 |
|
591 THuiCanvasWsGcType CHuiCanvasDebugWsGc::Type() const |
|
592 { |
|
593 return iCanvasWsGc->Type(); |
|
594 } |
|
595 |
|
596 CHuiCanvasDebugWsGc::CHuiCanvasDebugWsGc( CAlfCommandDebug& aCommandDebugger ) : iCommandDebugger( aCommandDebugger ) |
|
597 { |
|
598 |
|
599 } |
|
600 |
|
601 CHuiCanvasDebugWsGc* CHuiCanvasDebugWsGc::NewL( CHuiCanvasWsGc* aHuiCanvasGc, CAlfCommandDebug& aCommandDebugger ) |
|
602 { |
|
603 CHuiCanvasDebugWsGc* self; |
|
604 self = new(ELeave)CHuiCanvasDebugWsGc( aCommandDebugger ); |
|
605 CleanupStack::PushL( self ); |
|
606 self->ConstructL( aHuiCanvasGc); |
|
607 CleanupStack::Pop(); |
|
608 return self; |
|
609 } |
|
610 |
|
611 void CHuiCanvasDebugWsGc::ConstructL( |
|
612 CHuiCanvasWsGc* aHuiCanvasGc ) |
|
613 { |
|
614 |
|
615 iCanvasWsGc = aHuiCanvasGc; |
|
616 |
|
617 } |
|
618 |
|
619 void CHuiCanvasDebugWsGc::SetPositionDelta(TPoint& aPoint) |
|
620 { |
|
621 iCanvasWsGc->SetPositionDelta(aPoint); |
|
622 } |
|
623 |
|
624 CHuiCanvasDebugWsGc::~CHuiCanvasDebugWsGc() |
|
625 { |
|
626 delete iCanvasWsGc; |
|
627 } |
|
628 |
|
629 void CHuiCanvasDebugWsGc::EnableUpdateRegion(const TRegion& aUpdateRegion, TBool aClear) |
|
630 { |
|
631 iCanvasWsGc->EnableUpdateRegion(aUpdateRegion, aClear); |
|
632 } |
|
633 |
|
634 void CHuiCanvasDebugWsGc::DisableUpdateRegion() |
|
635 { |
|
636 iCanvasWsGc->DisableUpdateRegion(); |
|
637 } |
|
638 |
|
639 |