svgtopt/gfx2d/src/GfxRenderer/GfxRendererInfoP.cpp
changeset 0 d46562c3d99d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/svgtopt/gfx2d/src/GfxRenderer/GfxRendererInfoP.cpp	Thu Jan 07 16:19:02 2010 +0200
@@ -0,0 +1,64 @@
+/*
+* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  Graphics Extension Library source file
+*
+*/
+
+
+#include "GfxRendererInfoP.h"
+
+
+// ---------------------------------------------------------------------------
+// Constructor
+// ---------------------------------------------------------------------------
+// --------------------------------------------------------------------------
+// TGfxRendererInfoP::TGfxRendererInfoP()
+// ---------------------------------------------------------------------------
+TGfxRendererInfoP::TGfxRendererInfoP()
+    {
+    }
+
+// ---------------------------------------------------------------------------
+// set device
+// ---------------------------------------------------------------------------
+// --------------------------------------------------------------------------
+// void TGfxRendererInfoP::SetDevice( TUint8* /*aDstBuf*/,
+// ---------------------------------------------------------------------------
+void TGfxRendererInfoP::SetDevice( TUint8* /*aDstBuf*/,
+                                   TInt32 aWidth,
+                                   TInt32 aHeight,
+                                   TInt32 /*aBytePerPixel*/ )
+    {
+    iWidth = aWidth;
+    iHeight = aHeight;
+    iClipMinX = 0;
+    iClipMinY = 0;
+    iClipMaxX = aWidth;
+    iClipMaxY = aHeight;
+    }
+
+
+// ---------------------------------------------------------------------------
+// set clip
+// ---------------------------------------------------------------------------
+// --------------------------------------------------------------------------
+// void TGfxRendererInfoP::SetClip( const TGfxRectangle2D& aClip )
+// ---------------------------------------------------------------------------
+void TGfxRendererInfoP::SetClip( const TGfxRectangle2D& aClip )
+    {
+    iClipMinX = ( TInt32 ) aClip.iX;
+    iClipMinY = ( TInt32 ) aClip.iY;
+    iClipMaxX = ( TInt32 ) ( aClip.iX + aClip.iWidth );
+    iClipMaxY = ( TInt32 ) ( aClip.iY + aClip.iHeight );
+    }