svgtopt/VGRenderer/inc/MVGSurfaceImpl.h
changeset 46 88edb906c587
child 26 796196dd6e68
equal deleted inserted replaced
-1:000000000000 46:88edb906c587
       
     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:  MVGSurfaceImpl header file
       
    15  *
       
    16 */
       
    17 
       
    18 #ifndef MVGSURFACEIMPL_H_
       
    19 #define MVGSURFACEIMPL_H_
       
    20 
       
    21 #include <e32std.h>
       
    22 #include <e32base.h>
       
    23 
       
    24 class RWindow;
       
    25 class CFbsBitmap;
       
    26 
       
    27 class MVGSurfaceImpl
       
    28 {
       
    29 public:
       
    30     enum SurfaceConfig
       
    31     {
       
    32     BTIMAP_HEADER,
       
    33     ALPHA_SIZE,
       
    34     ALPHA_MASK_SIZE
       
    35     };
       
    36       
       
    37     virtual ~MVGSurfaceImpl(){}
       
    38 	
       
    39     virtual TInt InitializeSurface(TSize aSize, TInt aColorSpace) = 0;
       
    40     
       
    41     virtual TInt CreateSurface(TInt aDisplayMode, RWindow *aSurface, CFbsBitmap *aBitmap) = 0;
       
    42     
       
    43     virtual TInt ResizeSurface(TSize aSize) = 0;
       
    44     
       
    45     virtual void SetConfiguration(TInt aOption, const TAny* aValue) = 0;
       
    46     
       
    47     virtual TInt CopyBitmap(TInt aDisplayMode, TInt aMaskMode, CFbsBitmap *aBitmap, CFbsBitmap *aMask, TSize aSize = TSize(0,0)) = 0;
       
    48     
       
    49     virtual TInt BindClientBuffer(TInt aBuffer) = 0;
       
    50     
       
    51     virtual TInt PrepareToBindClientBuffer() = 0;
       
    52     virtual TInt UnBindClientBuffer() = 0;
       
    53    
       
    54     virtual void TerminateSurface() = 0;
       
    55     
       
    56 protected:
       
    57 	MVGSurfaceImpl(){}
       
    58 };
       
    59 
       
    60 #endif /*MVGSURFACEIMPL_H_*/