|
1 /* |
|
2 * Copyright (c) 2010 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: Internal extensions |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __HUIEXTENSION_H__ |
|
21 #define __HUIEXTENSION_H__ |
|
22 |
|
23 |
|
24 #include <e32std.h> |
|
25 |
|
26 class CFbsBitmap; |
|
27 |
|
28 // Uid for Partial Bitmap Upload extension |
|
29 // THuiTexturePartialBitmapUploadParams used as parameter. |
|
30 const TUid KHuiTexturePartialBitmapUploadUid = { 0x2002C359 }; |
|
31 |
|
32 // Parameter structure for Partial Bitmap Upload extension |
|
33 struct THuiTexturePartialBitmapUploadParams |
|
34 { |
|
35 // Input parameters |
|
36 |
|
37 TRect iRect; |
|
38 CFbsBitmap* iBitmap; |
|
39 |
|
40 // Output parameters |
|
41 |
|
42 TInt iErrorCode; |
|
43 }; |
|
44 |
|
45 // Uid for Query visual extension |
|
46 const TUid KHuiVisualQueryUid = { 0x2002C36B }; |
|
47 |
|
48 // Parameter structure for Query visual extension |
|
49 struct THuiVisualQueryParams |
|
50 { |
|
51 enum TQueryType |
|
52 { |
|
53 // iResult contains canvas flags |
|
54 EQueryCanvasFlags, |
|
55 // iResult contains positive value if external content drawing enabled, 0 otherwise. |
|
56 EQueryExternalContentDrawingEnabled, |
|
57 // iResult contains positive value if this has something to draw, 0 otherwise. |
|
58 EQueryHasDrawableContent |
|
59 }; |
|
60 |
|
61 // Query type (in) |
|
62 TQueryType iQueryType; |
|
63 |
|
64 // Result of query (out) |
|
65 TInt iValue; |
|
66 |
|
67 // Error code (out). This should be filled with KErrNotSupported by caller and visual should modify to KErrNone. |
|
68 TInt iResult; |
|
69 }; |
|
70 |
|
71 #endif // __HUIEXTENSION_H__ |