#include <Pt/Gfx/Paint.h>
Paint state used by drawing operations. 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 bundles the composition mode, pen, brush and font that define how a painter renders geometry and text. It can be reused to apply the same drawing state to multiple painting operations.