2263 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 |
2264 is black. |
2264 is black. |
2265 |
2265 |
2266 Note: |
2266 Note: |
2267 |
2267 |
2268 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 |
2269 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 |
2270 line and the line size drawn. |
2272 line and the line size drawn. |
2271 |
2273 |
2272 @param aColor An RGB colour for the pen. |
2274 @param aColor An RGB colour for the pen. |
2273 @see CGraphicsContext::SetDrawMode() */ |
2275 @see CGraphicsContext::SetDrawMode() */ |
2274 virtual void SetPenColor(const TRgb& aColor)=0; |
2276 virtual void SetPenColor(const TRgb& aColor)=0; |
2275 |
2277 |
2276 /** Sets the line drawing style for the pen. |
2278 /** Sets the line drawing style for the pen. |
2277 |
2279 |
2278 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 |
2279 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, |
2280 e.g. for a null pen: |
2282 e.g. for a null pen: |
2356 |
2358 |
2357 The effective brush colour depends on the drawing mode. |
2359 The effective brush colour depends on the drawing mode. |
2358 |
2360 |
2359 Notes: |
2361 Notes: |
2360 |
2362 |
2361 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 |
2362 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. |
2363 |
2366 |
2364 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 |
2365 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 |
2366 the window's background colour. |
2369 the window's background colour. |
2367 |
2370 |