|
1 /* |
|
2 * Copyright (c) 2002 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: Graphics Extension Library header file |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GFXRENDERINGHINTS_H |
|
20 #define GFXRENDERINGHINTS_H |
|
21 |
|
22 #include <e32std.h> |
|
23 #include <fbs.h> |
|
24 #include "GfxFloatFixPt.h" |
|
25 |
|
26 |
|
27 /** |
|
28 * This class implements the properties for renderer hints. |
|
29 * |
|
30 * @lib Gfx2D.lib |
|
31 * @since 1.0 |
|
32 */ |
|
33 class TGfxRenderingHints |
|
34 { |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Constructor. |
|
39 * |
|
40 * @since 1.0 |
|
41 * @return |
|
42 */ |
|
43 TGfxRenderingHints(); |
|
44 |
|
45 /** |
|
46 * Set the flag for visiblity. |
|
47 * |
|
48 * @since 1.0 |
|
49 * @param aVisibility : ETrue = visible |
|
50 * @return |
|
51 */ |
|
52 void SetVisibility( TBool aVisibility ); |
|
53 |
|
54 /** |
|
55 * Get the flag for visiblity. |
|
56 * |
|
57 * @since 1.0 |
|
58 * @param aVisibility : ETrue = visible |
|
59 * @return visibility flag |
|
60 */ |
|
61 TBool Visibility(); |
|
62 |
|
63 /** |
|
64 * Set the level of curve quality. |
|
65 * |
|
66 * @since 1.0 |
|
67 * @param aCurveQuality : level of quality |
|
68 * @return |
|
69 */ |
|
70 void SetCurveQuality( TInt aCurveQuality ); |
|
71 |
|
72 /** |
|
73 * Get the level of curve quality. |
|
74 * |
|
75 * @since 1.0 |
|
76 * @return level of quality of curves. |
|
77 */ |
|
78 TInt CurveQuality(); |
|
79 |
|
80 /** |
|
81 * Set the flag for fast font rendering |
|
82 * |
|
83 * @since 1.0 |
|
84 * @param aFastFontRendering : ETrue = fast |
|
85 * @return |
|
86 */ |
|
87 void SetFastFontRendering( TBool aFastFontRendering ); |
|
88 |
|
89 /** |
|
90 * Get the flag for fast font rendering |
|
91 * |
|
92 * @since 1.0 |
|
93 * @return fast font rendering flag |
|
94 */ |
|
95 TBool FastFontRendering(); |
|
96 |
|
97 /** |
|
98 * Set the flag for anti-aliasing rendering of shapes |
|
99 * |
|
100 * @since 1.0 |
|
101 * @param aFastFontRendering : ETrue = should render with anti-alias. |
|
102 * @return |
|
103 */ |
|
104 void SetShapeAntiAliasing( TBool aShapeAntiAliasing ); |
|
105 |
|
106 /** |
|
107 * Get the flag for anti-aliasing rendering of shapes |
|
108 * |
|
109 * @since 1.0 |
|
110 * @return anti-aliasing rendering of shapes flag |
|
111 */ |
|
112 TBool ShapeAntiAliasing(); |
|
113 |
|
114 /** |
|
115 * Get the image interpolation object. |
|
116 * |
|
117 * @since 1.0 |
|
118 * @return image interpolation object. |
|
119 */ |
|
120 TGfxImageInterpolation ImageInterpolation(); |
|
121 |
|
122 private: |
|
123 TUint32 iHintBits; |
|
124 |
|
125 }; |
|
126 |
|
127 #endif // GFXRENDERINGHINTS_H |