svgtopt/VGRenderer/SWVG/inc/SWVGSurfaceImpl.h
changeset 0 d46562c3d99d
equal deleted inserted replaced
-1:000000000000 0:d46562c3d99d
       
     1 /*
       
     2 * Copyright (c) 2003 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:  CSWVGSurfaceImpl source file
       
    15  *
       
    16 */
       
    17 
       
    18 #ifndef SWVGSURFACEIMPL_H_
       
    19 #define SWVGSURFACEIMPL_H_
       
    20 
       
    21 #include "SWVG.h"
       
    22 #include "MVGSurfaceImpl.h"
       
    23 
       
    24 class CSWVGSurfaceImpl : public CBase, public MVGSurfaceImpl
       
    25 {
       
    26 public:
       
    27     static CSWVGSurfaceImpl* NewL();
       
    28     static CSWVGSurfaceImpl* NewLC();
       
    29     
       
    30 	virtual ~CSWVGSurfaceImpl();
       
    31 
       
    32     virtual TInt InitializeSurface(TSize aSize, TInt aColorSpace);
       
    33     
       
    34     virtual TInt CreateSurface(TInt aDisplayMode, RWindow *aSurface, CFbsBitmap *aBitmap);
       
    35     
       
    36     virtual TInt ResizeSurface(TSize aSize);
       
    37     
       
    38     virtual void SetConfiguration(TInt aOption, const TAny* aValue);
       
    39     
       
    40     virtual TInt CopyBitmap(TInt aDisplayMode,TInt aMaskMode,CFbsBitmap *aBitmap, CFbsBitmap *aMask, TSize aSize = TSize(0,0));
       
    41 
       
    42     virtual TInt PrepareToBindClientBuffer();
       
    43     virtual TInt BindClientBuffer(TInt buffer);
       
    44       
       
    45     virtual TInt UnBindClientBuffer();
       
    46 
       
    47     virtual void TerminateSurface();
       
    48     
       
    49 private:
       
    50     CSWVGSurfaceImpl();
       
    51     void ConstructL();
       
    52     TSize   iSize;
       
    53 };
       
    54 
       
    55 #endif /*SWVGSURFACEIMPL_H_*/