2266 The effective pen colour depends on the drawing mode. The default pen colour |
2266 The effective pen colour depends on the drawing mode. The default pen colour |
2267 is black. |
2267 is black. |
2268 |
2268 |
2269 Note: |
2269 Note: |
2270 |
2270 |
2271 The pen is used to draw lines, the outlines of filled shapes, and text. The |
2271 The pen is used to draw lines, the outlines of filled shapes, and text. In case |
2272 class provides member functions to set the colour of the pen, the style of |
2272 of outlined text, the pen is used to draw the outline of the font. |
|
2273 |
|
2274 The class provides member functions to set the colour of the pen, the style of |
2273 line and the line size drawn. |
2275 line and the line size drawn. |
2274 |
2276 |
2275 @param aColor An RGB colour for the pen. |
2277 @param aColor An RGB colour for the pen. |
2276 @see CGraphicsContext::SetDrawMode() */ |
2278 @see CGraphicsContext::SetDrawMode() */ |
2277 virtual void SetPenColor(const TRgb& aColor)=0; |
2279 virtual void SetPenColor(const TRgb& aColor)=0; |
2278 |
2280 |
2279 /** Sets the line drawing style for the pen. |
2281 /** Sets the line drawing style for the pen. |
2280 |
2282 |
2281 There are 6 pen styles. If no pen style is set, then the default is |
2283 There are 6 pen styles. If no pen style is set, then the default is |
2282 TPenStyle::ESolidPen. To use a pen style, its full context must be given, |
2284 TPenStyle::ESolidPen. To use a pen style, its full context must be given, |
2283 e.g. for a null pen: |
2285 e.g. for a null pen: |
2359 |
2361 |
2360 The effective brush colour depends on the drawing mode. |
2362 The effective brush colour depends on the drawing mode. |
2361 |
2363 |
2362 Notes: |
2364 Notes: |
2363 |
2365 |
2364 The brush is used for filling shapes and the background of text boxes. The |
2366 The brush is used for filling shapes and the background of text boxes. In |
2365 brush has colour, style, pattern and pattern origin parameters. |
2367 case of outlined text, the brush is used for filling the font. The brush |
|
2368 has colour, style, pattern and pattern origin parameters. |
2366 |
2369 |
2367 If no brush colour has been set, it defaults to white. However the default |
2370 If no brush colour has been set, it defaults to white. However the default |
2368 brush style is null, so when drawing to a window the default appears to be |
2371 brush style is null, so when drawing to a window the default appears to be |
2369 the window's background colour. |
2372 the window's background colour. |
2370 |
2373 |