svgtopt/gfx2d/inc/GfxStrokeRendererP.h
changeset 0 d46562c3d99d
equal deleted inserted replaced
-1:000000000000 0:d46562c3d99d
       
     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 header file
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GFXSTROKERENDERERP_H
       
    20 #define GFXSTROKERENDERERP_H
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 
       
    25 #include "GfxFloatFixPt.h"
       
    26 #include "GfxColor.h"
       
    27 
       
    28 
       
    29 
       
    30 class TGfxColor;
       
    31 class MGfxPaint;
       
    32 class CGfxEdgeListP;
       
    33 class TGfxRendererInfoP;
       
    34 
       
    35 
       
    36 class CFbsBitGc;
       
    37 
       
    38 /**
       
    39  *  Implementation of a rendering class for a stroke.
       
    40  *
       
    41  *  @lib Gfx2D.lib
       
    42  *  @since 1.0
       
    43  */
       
    44 class TGfxStrokeRendererP
       
    45     {
       
    46     public:
       
    47         /**
       
    48          * Constructor.
       
    49          *
       
    50          * @since 1.0
       
    51          * @return
       
    52          */
       
    53                             TGfxStrokeRendererP();
       
    54 
       
    55 
       
    56         /**
       
    57          * Intialize this object.
       
    58          *
       
    59          * @since 1.0
       
    60          * @param aEdgeList : list of edge points.
       
    61          * @param aRenderInfo : rendering info.
       
    62          * @param aColor : color to draw.
       
    63          * @param aPolbuf : pixel output buffer.
       
    64          * @return
       
    65          */
       
    66          void                InitializeP( CGfxEdgeListP* aEdgeList,
       
    67                                          TGfxRendererInfoP* aRenderInfo,
       
    68                                          TGfxColor aColor );
       
    69 
       
    70         /**
       
    71          * Render at the given horizontal line.
       
    72          *
       
    73          * @since 1.0
       
    74          * @param aY : y coordinate of line to render.
       
    75          * @return
       
    76          */
       
    77         void                RenderScanlineL( TInt aY );
       
    78 
       
    79         /**
       
    80          * Render at the given horizontal line.
       
    81          *
       
    82          * @since 1.0
       
    83          * @param aY : y coordinate of line to render.
       
    84          * @param aAlpha : alpha value for blending.
       
    85          * @return
       
    86          */
       
    87         void                RenderScanlineL( TInt aY, TUint32 aAlpha );
       
    88 
       
    89     protected:
       
    90 
       
    91 
       
    92         CGfxEdgeListP*      iEdgeList;
       
    93         TGfxRendererInfoP*  iRenderInfo;
       
    94         TGfxColor           iStrokeColor;
       
    95 
       
    96         CFbsBitGc*          iGdiGc;
       
    97     };
       
    98 
       
    99 
       
   100 #endif      // GFXSTROKERENDERERP_H