|
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 MVGRENDERERIMPL_H_ |
|
19 #define MVGRENDERERIMPL_H_ |
|
20 |
|
21 class MVGSurfaceImpl; |
|
22 |
|
23 class MVGRendererImpl |
|
24 { |
|
25 protected: |
|
26 MVGRendererImpl(){} |
|
27 |
|
28 public: |
|
29 virtual ~MVGRendererImpl(){} |
|
30 |
|
31 virtual TVersion GetVersion() const = 0; |
|
32 virtual const TDesC GetName() const = 0; |
|
33 |
|
34 virtual void vgClear(TInt x, TInt y, TInt width, TInt height) = 0; |
|
35 |
|
36 virtual void vgSeti(TInt type, TInt value) = 0; |
|
37 virtual void vgSetf (TInt type, TReal32 value) = 0; |
|
38 virtual void vgSetfv(TInt type, TInt count, const TReal32 * values) = 0; |
|
39 virtual void vgSetiv(TInt type, TInt count, const TInt * values) = 0; |
|
40 virtual void vgSetParameteri(TUint handle, TInt paramType, TInt value) = 0; |
|
41 virtual void vgSetParameterf(TUint handle,TInt paramType,TReal32 value) = 0; |
|
42 virtual void vgSetParameterfv(TUint object,TInt paramType,TInt count, const TReal32 * values) = 0; |
|
43 virtual TInt vgGeti(TInt type)=0; |
|
44 |
|
45 |
|
46 virtual void vgSetColor(TUint paint, TUint rgba) = 0; |
|
47 virtual void vgSetPaint(TUint paint, TUint paintModes) = 0; |
|
48 virtual TUint vgCreatePaint() = 0; |
|
49 virtual TUint vgCreatePath(TInt pathFormat, TInt datatype, TReal32 scale, TReal32 bias, |
|
50 TInt segmentCapacityHint, TInt coordCapacityHint, TInt capabilities) = 0; |
|
51 |
|
52 virtual void vgLoadMatrix(const TReal32 * m) = 0; |
|
53 virtual void vgMultMatrix(const TReal32 * m) = 0; |
|
54 virtual void vgLoadIdentity() = 0; |
|
55 virtual void vgScale(TReal32 sx, TReal32 sy) = 0; |
|
56 virtual void vgRotate(TReal32 angle) = 0; |
|
57 virtual void vgTranslate(TReal32 tx, TReal32 ty) = 0; |
|
58 virtual void vgReadPixels(void * data, TInt dataStride,TInt dataFormat,TInt sx, TInt sy,TInt width, TInt height)=0; |
|
59 virtual void vgWritePixels(const void * data, TInt dataStride, TInt dataFormat, |
|
60 TInt dx, TInt dy, TInt width, TInt height) = 0; |
|
61 |
|
62 virtual void vgAppendPathData(TUint path,TInt numSegments, |
|
63 const TUint8 * pathSegments, |
|
64 const void * pathData) = 0; |
|
65 |
|
66 virtual void vgDrawPath(TUint path, TUint paintModes) = 0; |
|
67 |
|
68 virtual void vgClearPath(TUint path, TUint capabilities) = 0; |
|
69 |
|
70 virtual TInt vguRect(TUint path, |
|
71 TReal32 x, TReal32 y, |
|
72 TReal32 width, TReal32 height) = 0; |
|
73 virtual TInt vguEllipse(TUint path, |
|
74 TReal32 cx, TReal32 cy, |
|
75 TReal32 width, TReal32 height) = 0; |
|
76 virtual TInt vguRoundRect(TUint path, TReal32 x, TReal32 y, |
|
77 TReal32 width, TReal32 height, TReal32 arcWidth, TReal32 arcHeight) = 0; |
|
78 virtual TInt vguLine(TUint path,TReal32 x0, TReal32 y0,TReal32 x1, TReal32 y1) = 0; |
|
79 |
|
80 virtual TUint vgCreateImage(TInt format, TInt width, TInt height, TInt allowedQuality) = 0; |
|
81 virtual void vgGetPixels(TUint dst, TInt dx, TInt dy, TInt sx, TInt sy, TInt width, TInt height) = 0; |
|
82 virtual void vgDrawImage(TUint image) = 0; |
|
83 |
|
84 virtual void vgClearImage(TUint image, TInt x, TInt y, TInt width, TInt height) = 0; |
|
85 virtual void vgImageSubData(TUint image, const void * data, TInt dataStride, |
|
86 TInt dataFormat, TInt x, TInt y, TInt width, TInt height) = 0; |
|
87 virtual void vgMask(TUint mask, TInt operation, TInt x, TInt y, TInt width, TInt height) = 0; |
|
88 |
|
89 virtual void vgDestroyImage(TUint aHandle) = 0; |
|
90 virtual void vgDestroyPaint(TUint aHandle) = 0; |
|
91 virtual void vgDestroyPath(TUint aHandle) = 0; |
|
92 |
|
93 virtual void ToggleReset() = 0; |
|
94 virtual void vgFlush() = 0; |
|
95 virtual TInt vgGetError() = 0; |
|
96 virtual void DumpToLogFile() =0; |
|
97 virtual void CloseLogFile() =0; |
|
98 virtual MVGSurfaceImpl* CreateVGSurfaceL(TInt aOption) = 0; |
|
99 virtual const TPtrC8 TLVEncodedData() const=0; |
|
100 |
|
101 }; |
|
102 |
|
103 #endif /*MVGRENDERERIMPL_H_*/ |