equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef HGVGIMAGECREATOR_H_ |
|
19 #define HGVGIMAGECREATOR_H_ |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32base.h> |
|
23 #include <e32std.h> |
|
24 #include <coemain.h> |
|
25 #include <gdi.h> |
|
26 #include <VG/openvg.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CHgVgEGL; |
|
30 class CNvgEngine; |
|
31 |
|
32 NONSHARABLE_CLASS(CHgVgImageCreator) : public CCoeStatic |
|
33 { |
|
34 public: |
|
35 /** |
|
36 * |
|
37 */ |
|
38 static CHgVgImageCreator* InstanceL(); |
|
39 |
|
40 private: |
|
41 |
|
42 CHgVgImageCreator(); |
|
43 ~CHgVgImageCreator(); |
|
44 |
|
45 void ConstructL(); |
|
46 |
|
47 public: |
|
48 /** |
|
49 * This must be called to set current EGL, before calling any other methods. |
|
50 */ |
|
51 void Initialize(CHgVgEGL* aEGL); |
|
52 |
|
53 /** |
|
54 * Creates new VGImage from given CFbsBitmap. |
|
55 * Bitmap must be extended bitmap containing NVGData in data address. |
|
56 * |
|
57 * @param aIcon icon used to create the image. |
|
58 * @return VGImage-handle to created image. |
|
59 */ |
|
60 VGImage RenderImageFromIconL(const CFbsBitmap* aBitmap); |
|
61 |
|
62 //CNvgEngine* iNvgEngine; |
|
63 CHgVgEGL* iEGL; |
|
64 }; |
|
65 |
|
66 |
|
67 |
|
68 #endif /* HGVGIMAGECREATOR */ |