uiacceltk/hitchcock/coretoolkit/rendervg10/inc/huivg10canvasgc.h
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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:   Definition of CHuiCanvasGc
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __HUIVG10CANVASGC_H__
       
    21 #define __HUIVG10CANVASGC_H__
       
    22 
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <uiacceltk/HuiVisual.h>
       
    26 #include "huicanvasgc.h"
       
    27 
       
    28 
       
    29 /* Forward declarations. */    
       
    30 
       
    31 class CHuiVg10CanvasGc : public CHuiCanvasGc
       
    32     {
       
    33 public:
       
    34 
       
    35     CHuiVg10CanvasGc();
       
    36     ~CHuiVg10CanvasGc();
       
    37     void DoDrawPolygon(RArray<THuiRealPoint>& aPoints);
       
    38     void DoDrawEllipse(const THuiRealRect& aDestinationRect);
       
    39     void DoDrawArc(const THuiRealRect& aDestinationRect, const THuiRealPoint& aStart, const THuiRealPoint& aEnd);
       
    40     void DoDrawPie(const THuiRealRect& aDestinationRect, const THuiRealPoint& aStart, const THuiRealPoint& aEnd);
       
    41     void DoDrawRoundRect(const THuiRealRect& aDestinationRect, const THuiRealSize& aSize);
       
    42     void DoDrawRenderBuffer(const CHuiCanvasRenderBuffer& aImage, const THuiRealPoint& aDestinationPoint);
       
    43     void DoClearRenderBuffer( CHuiCanvasRenderBuffer& aImage, const TRect & aRect );
       
    44     void DoDrawRects(RArray<THuiRealRect>& aRects);
       
    45 
       
    46     void DrawEllipse(const THuiRealRect& aDestinationRect);
       
    47     
       
    48     void ClearWithSkinBackground(const THuiRealRect& aRect);
       
    49     void ClearWithBackgroundItems(const THuiRealRect& aRect, const RArray<THuiDisplayBackgroundItem>& aItems);
       
    50     TInt MaxNumberOfClipRects() const;
       
    51     CHuiCanvasRenderBuffer* CreateRenderBufferL(const TSize& aSize);
       
    52 
       
    53     void RestoreFlaggedState() const;
       
    54     
       
    55 private: // New
       
    56     
       
    57     void DoDrawPieAndArc(const THuiRealRect& aDestinationRect, 
       
    58           const THuiRealPoint& aStart, const THuiRealPoint& aEnd, TBool aIsPie);
       
    59     };
       
    60 
       
    61 #endif