svgtopt/gfx2d/inc/GfxRendererInfoP.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 GFXRENDERERINFOP_H
       
    20 #define GFXRENDERERINFOP_H
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 
       
    25 #include "GfxFloatFixPt.h"
       
    26 #include "GfxRectangle2D.h"
       
    27 
       
    28 
       
    29 /**
       
    30  * This class implements the base properties of a renderer.
       
    31  *
       
    32  *  @lib Gfx2D.lib
       
    33  *  @since 1.0
       
    34  */
       
    35 class TGfxRendererInfoP
       
    36     {
       
    37     class    CGfxFont;
       
    38 
       
    39     public:
       
    40 
       
    41         /**
       
    42          * Constructor.
       
    43          *
       
    44          * @since 1.0
       
    45          * @return
       
    46          */
       
    47                         TGfxRendererInfoP();
       
    48 
       
    49         /**
       
    50          * Set the device info to rendering.
       
    51          *
       
    52          * @since 1.0
       
    53          * @param aDstBuf : data holder for pixel info.
       
    54          * @param aWidth : width of rendering area.
       
    55          * @param aHeight : height of rendering area.
       
    56          * @param aBytePerPixel : bytes per pixel
       
    57          * @return
       
    58          */
       
    59         void            SetDevice( TUint8* aDstBuf,
       
    60                                    TInt32 aWidth,
       
    61                                    TInt32 aHeight,
       
    62                                    TInt32 aBytePerPixel );
       
    63 
       
    64         /**
       
    65          * Set the area to apply rendering operations.
       
    66          *
       
    67          * @since 1.0
       
    68          * @param aClip : rectangle to define clipping area.
       
    69          * @return
       
    70          */
       
    71         void            SetClip( const TGfxRectangle2D& aClip );
       
    72 
       
    73     protected:
       
    74 
       
    75         TInt32          iWidth;
       
    76         TInt32          iHeight;
       
    77 
       
    78         TInt32          iClipMinX, iClipMinY;
       
    79         TInt32          iClipMaxX, iClipMaxY;
       
    80 
       
    81 
       
    82     private:
       
    83         friend class    CGfx2dGcVGR;
       
    84         friend class    CGfx2dGcOpenVG;
       
    85     };
       
    86 
       
    87 #endif      // GFXRENDERERINFOP_H