|
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: CSWVGTargetSurfaceImpl header file |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef SWOPENVGTARGETSURFACEIMPL_H_ |
|
19 #define SWOPENVGTARGETSURFACEIMPL_H_ |
|
20 |
|
21 #include "SWVG.h" |
|
22 #include "MVGSurfaceImpl.h" |
|
23 |
|
24 #include <displaymode.h> |
|
25 |
|
26 class CSvgtBitmap; |
|
27 |
|
28 class CSWVGTargetSurfaceImpl : public CBase, public MVGSurfaceImpl |
|
29 { |
|
30 public: |
|
31 static CSWVGTargetSurfaceImpl* NewL(); |
|
32 static CSWVGTargetSurfaceImpl* NewLC(); |
|
33 |
|
34 virtual ~CSWVGTargetSurfaceImpl(); |
|
35 |
|
36 virtual TInt InitializeSurface(TSize aSize, TInt aColorSpace); |
|
37 |
|
38 virtual TInt CreateSurface(TInt /*aDisplayMode*/, RWindow */*aSurface*/, CFbsBitmap */*aBitmap*/); |
|
39 virtual TInt CreateSurface(TInt aDisplayMode, RWindow *aSurface, CSvgtBitmap *aBitmap); |
|
40 |
|
41 virtual TInt ResizeSurface(TSize aSize); |
|
42 |
|
43 virtual void SetConfiguration(TInt aOption, const TAny* aValue); |
|
44 |
|
45 virtual TInt CopyBitmap(TInt /*aDisplayMode*/, TInt /*aMaskMode*/, CFbsBitmap */*aBitmap*/, CFbsBitmap */*aMask*/, TSize /*aSize*/ = TSize(0,0)); |
|
46 virtual TInt CopyBitmap(TInt aDisplayMode,TInt aMaskMode,CSvgtBitmap *aBitmap, CSvgtBitmap *aMask, TSize aSize = TSize(0,0)); |
|
47 |
|
48 virtual TInt PrepareToBindClientBuffer(); |
|
49 virtual TInt BindClientBuffer(TInt buffer); |
|
50 |
|
51 virtual TInt UnBindClientBuffer(); |
|
52 |
|
53 virtual void TerminateSurface(); |
|
54 |
|
55 TInt MapSymbianDisplayModeToOpenVG( TDisplayMode aMode) const; |
|
56 TInt MapOpenVGErrorToSymbianError( TInt aError ) const; |
|
57 |
|
58 private: |
|
59 CSWVGTargetSurfaceImpl(); |
|
60 void ConstructL(); |
|
61 TSize iSize; |
|
62 }; |
|
63 |
|
64 #endif /* SWOPENVGTARGETSURFACEIMPL_H_ */ |