diff -r 000000000000 -r 88edb906c587 svgtopt/gfx2d/inc/GfxStrokeRendererP.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/svgtopt/gfx2d/inc/GfxStrokeRendererP.h Wed Nov 03 18:56:10 2010 +0200 @@ -0,0 +1,100 @@ +/* +* 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 header file +* +*/ + + +#ifndef GFXSTROKERENDERERP_H +#define GFXSTROKERENDERERP_H + +#include +#include + +#include "GfxFloatFixPt.h" +#include "GfxColor.h" + + + +class TGfxColor; +class MGfxPaint; +class CGfxEdgeListP; +class TGfxRendererInfoP; + + +class CFbsBitGc; + +/** + * Implementation of a rendering class for a stroke. + * + * @lib Gfx2D.lib + * @since 1.0 + */ +class TGfxStrokeRendererP + { + public: + /** + * Constructor. + * + * @since 1.0 + * @return + */ + TGfxStrokeRendererP(); + + + /** + * Intialize this object. + * + * @since 1.0 + * @param aEdgeList : list of edge points. + * @param aRenderInfo : rendering info. + * @param aColor : color to draw. + * @param aPolbuf : pixel output buffer. + * @return + */ + void InitializeP( CGfxEdgeListP* aEdgeList, + TGfxRendererInfoP* aRenderInfo, + TGfxColor aColor ); + + /** + * Render at the given horizontal line. + * + * @since 1.0 + * @param aY : y coordinate of line to render. + * @return + */ + void RenderScanlineL( TInt aY ); + + /** + * Render at the given horizontal line. + * + * @since 1.0 + * @param aY : y coordinate of line to render. + * @param aAlpha : alpha value for blending. + * @return + */ + void RenderScanlineL( TInt aY, TUint32 aAlpha ); + + protected: + + + CGfxEdgeListP* iEdgeList; + TGfxRendererInfoP* iRenderInfo; + TGfxColor iStrokeColor; + + CFbsBitGc* iGdiGc; + }; + + +#endif // GFXSTROKERENDERERP_H