equal
deleted
inserted
replaced
1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
44 /** Hint whether the surface content is copy protected and can it be |
44 /** Hint whether the surface content is copy protected and can it be |
45 shown on external displays. |
45 shown on external displays. |
46 @see TSurfaceProtection for possible values. |
46 @see TSurfaceProtection for possible values. |
47 */ |
47 */ |
48 const TInt KSurfaceProtection = 0x3; |
48 const TInt KSurfaceProtection = 0x3; |
49 |
|
50 /** Hint about the surface’s characteristics or properties, |
|
51 For example if a surface can be persisted by the effects engine. |
|
52 @see TSurfaceCharacteristics for possible values. |
|
53 */ |
|
54 const TInt KSurfaceCharacteristics = 0x4; |
|
55 |
49 |
56 |
50 |
57 /** Values used for the KSurfaceContent key */ |
51 /** Values used for the KSurfaceContent key */ |
58 enum TSurfaceContent |
52 enum TSurfaceContent |
59 { |
53 { |
124 */ |
118 */ |
125 EAllowDigitalProtectionRequired = 0x00000800, |
119 EAllowDigitalProtectionRequired = 0x00000800, |
126 }; |
120 }; |
127 |
121 |
128 |
122 |
129 /** Values used for the KSurfaceCharacteristics key. The values are bitmasks and can be combined. |
|
130 */ |
|
131 enum TSurfaceCharacteristics |
|
132 { |
|
133 /** |
|
134 * Surface cannot be persisted once it has been closed by the creator |
|
135 */ |
|
136 ENotPersistable = 1, |
|
137 }; |
|
138 |
|
139 |
|
140 class TSurfaceUpdate |
123 class TSurfaceUpdate |
141 { |
124 { |
142 /** Constructor. |
125 /** Constructor. |
143 @param aUpdateRate How often the surface content is redrawn per second. |
126 @param aUpdateRate How often the surface content is redrawn per second. |
144 @param aTearingFree When ETrue surface updates should be synchronized |
127 @param aTearingFree When ETrue surface updates should be synchronized |
200 TBool TSurfaceUpdate::TearingFree() const |
183 TBool TSurfaceUpdate::TearingFree() const |
201 { |
184 { |
202 return ( iValue & 0x80000000 ) ? ETrue : EFalse; |
185 return ( iValue & 0x80000000 ) ? ETrue : EFalse; |
203 } |
186 } |
204 |
187 |
205 } //namespace surfaceHints |
188 }; //namespace surfaceHints |
206 |
189 |
207 #endif //__SURFACE_HINTS_H__ |
190 #endif //__SURFACE_HINTS_H__ |
208 |
191 |
209 // End of File |
192 // End of File |
210 |
193 |