#include <Pt/Gfx/Paint.h>
Pen, brush, font and composition mode. More...
Public Member Functions | |
| Paint () | |
| Constructs the default paint state. | |
| ~Paint () | |
| Destroys the paint state. | |
| const CompositionMode & | compositionMode () const |
| Returns the current composition mode. | |
| void | setCompositionMode (const CompositionMode &mode) |
| Sets the composition mode. | |
| const Pen & | pen () const |
| Returns the current pen. | |
| void | setPen (const Pen &pen) |
| Sets the pen used to stroke lines. | |
| const Brush & | brush () const |
| Returns the current brush. | |
| void | setBrush (const Brush &brush) |
| Sets the brush used to fill areas. | |
| const Font & | font () const |
| Returns the current font. | |
| void | setFont (const Font &font) |
| Sets the font used to draw text. | |
Paint stores the four pieces of drawing state a painter uses: CompositionMode, Pen, Brush, and Font. Set them on a Paint value and reuse that value, or set the same pieces on a Painter directly. This type does not draw and it does not own a surface.