|
1 /* |
|
2 * Copyright (c) 2002 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: Graphics Extension Library source file |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "GfxRendererInfoP.h" |
|
20 |
|
21 |
|
22 // --------------------------------------------------------------------------- |
|
23 // Constructor |
|
24 // --------------------------------------------------------------------------- |
|
25 // -------------------------------------------------------------------------- |
|
26 // TGfxRendererInfoP::TGfxRendererInfoP() |
|
27 // --------------------------------------------------------------------------- |
|
28 TGfxRendererInfoP::TGfxRendererInfoP() |
|
29 { |
|
30 } |
|
31 |
|
32 // --------------------------------------------------------------------------- |
|
33 // set device |
|
34 // --------------------------------------------------------------------------- |
|
35 // -------------------------------------------------------------------------- |
|
36 // void TGfxRendererInfoP::SetDevice( TUint8* /*aDstBuf*/, |
|
37 // --------------------------------------------------------------------------- |
|
38 void TGfxRendererInfoP::SetDevice( TUint8* /*aDstBuf*/, |
|
39 TInt32 aWidth, |
|
40 TInt32 aHeight, |
|
41 TInt32 /*aBytePerPixel*/ ) |
|
42 { |
|
43 iWidth = aWidth; |
|
44 iHeight = aHeight; |
|
45 iClipMinX = 0; |
|
46 iClipMinY = 0; |
|
47 iClipMaxX = aWidth; |
|
48 iClipMaxY = aHeight; |
|
49 } |
|
50 |
|
51 |
|
52 // --------------------------------------------------------------------------- |
|
53 // set clip |
|
54 // --------------------------------------------------------------------------- |
|
55 // -------------------------------------------------------------------------- |
|
56 // void TGfxRendererInfoP::SetClip( const TGfxRectangle2D& aClip ) |
|
57 // --------------------------------------------------------------------------- |
|
58 void TGfxRendererInfoP::SetClip( const TGfxRectangle2D& aClip ) |
|
59 { |
|
60 iClipMinX = ( TInt32 ) aClip.iX; |
|
61 iClipMinY = ( TInt32 ) aClip.iY; |
|
62 iClipMaxX = ( TInt32 ) ( aClip.iX + aClip.iWidth ); |
|
63 iClipMaxY = ( TInt32 ) ( aClip.iY + aClip.iHeight ); |
|
64 } |