1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1998-2010 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". |
138 /** One or more of the input parameters to the interface were invalid */ |
138 /** One or more of the input parameters to the interface were invalid */ |
139 EGdiPanic_InvalidInputParam = 1, |
139 EGdiPanic_InvalidInputParam = 1, |
140 /** Insufficient text for successful completion of the method */ |
140 /** Insufficient text for successful completion of the method */ |
141 EGdiPanic_OutOfText = 2, |
141 EGdiPanic_OutOfText = 2, |
142 /** Internal failure. */ |
142 /** Internal failure. */ |
143 EGdiPanic_Invariant = 3 |
143 EGdiPanic_Invariant = 3, |
|
144 /** Reserved panic codes. Not to be used. */ |
|
145 EGdiPanic_Reserved1 = 4, |
|
146 EGdiPanic_Reserved2 = 5, |
|
147 /** Setting a typeface name that is too long */ |
|
148 EGdiPanic_TypefaceNameOverflow = 6, |
144 }; |
149 }; |
145 |
150 |
146 |
151 |
147 /** 24-bit RGB colour value with 8 bits each for red, green and blue. |
152 /** 24-bit RGB colour value with 8 bits each for red, green and blue. |
148 |
153 |
558 IMPORT_C TBool IsSerif() const; |
563 IMPORT_C TBool IsSerif() const; |
559 IMPORT_C TBool IsSymbol() const; |
564 IMPORT_C TBool IsSymbol() const; |
560 IMPORT_C void SetScriptTypeForMetrics(TLanguage aLanguage); |
565 IMPORT_C void SetScriptTypeForMetrics(TLanguage aLanguage); |
561 IMPORT_C void SetScriptTypeForMetrics(TInt aScript); |
566 IMPORT_C void SetScriptTypeForMetrics(TInt aScript); |
562 IMPORT_C TInt ScriptTypeForMetrics() const; |
567 IMPORT_C TInt ScriptTypeForMetrics() const; |
|
568 IMPORT_C void SetName(const TDesC& aName); |
|
569 IMPORT_C const TDesC& Name() const; |
563 private: |
570 private: |
564 void ResetAttributes(); |
571 void ResetAttributes(); |
565 void ResetScriptType(); |
572 void ResetScriptType(); |
566 public: |
573 public: |
567 /** The typeface name. */ |
574 /** The typeface name. */ |
2256 The effective pen colour depends on the drawing mode. The default pen colour |
2263 The effective pen colour depends on the drawing mode. The default pen colour |
2257 is black. |
2264 is black. |
2258 |
2265 |
2259 Note: |
2266 Note: |
2260 |
2267 |
2261 The pen is used to draw lines, the outlines of filled shapes, and text. The |
2268 The pen is used to draw lines, the outlines of filled shapes, and text. In case |
2262 class provides member functions to set the colour of the pen, the style of |
2269 of outlined text, the pen is used to draw the outline of the font. |
|
2270 |
|
2271 The class provides member functions to set the colour of the pen, the style of |
2263 line and the line size drawn. |
2272 line and the line size drawn. |
2264 |
2273 |
2265 @param aColor An RGB colour for the pen. |
2274 @param aColor An RGB colour for the pen. |
2266 @see CGraphicsContext::SetDrawMode() */ |
2275 @see CGraphicsContext::SetDrawMode() */ |
2267 virtual void SetPenColor(const TRgb& aColor)=0; |
2276 virtual void SetPenColor(const TRgb& aColor)=0; |
2268 |
2277 |
2269 /** Sets the line drawing style for the pen. |
2278 /** Sets the line drawing style for the pen. |
2270 |
2279 |
2271 There are 6 pen styles. If no pen style is set, then the default is |
2280 There are 6 pen styles. If no pen style is set, then the default is |
2272 TPenStyle::ESolidPen. To use a pen style, its full context must be given, |
2281 TPenStyle::ESolidPen. To use a pen style, its full context must be given, |
2273 e.g. for a null pen: |
2282 e.g. for a null pen: |
2349 |
2358 |
2350 The effective brush colour depends on the drawing mode. |
2359 The effective brush colour depends on the drawing mode. |
2351 |
2360 |
2352 Notes: |
2361 Notes: |
2353 |
2362 |
2354 The brush is used for filling shapes and the background of text boxes. The |
2363 The brush is used for filling shapes and the background of text boxes. In |
2355 brush has colour, style, pattern and pattern origin parameters. |
2364 case of outlined text, the brush is used for filling the font. The brush |
|
2365 has colour, style, pattern and pattern origin parameters. |
2356 |
2366 |
2357 If no brush colour has been set, it defaults to white. However the default |
2367 If no brush colour has been set, it defaults to white. However the default |
2358 brush style is null, so when drawing to a window the default appears to be |
2368 brush style is null, so when drawing to a window the default appears to be |
2359 the window's background colour. |
2369 the window's background colour. |
2360 |
2370 |