#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 CompositionModecompositionMode () const
 Returns the current composition mode.
void setCompositionMode (const CompositionMode &mode)
 Sets the composition mode.
const Penpen () const
 Returns the current pen.
void setPen (const Pen &pen)
 Sets the pen used to stroke lines.
const Brushbrush () const
 Returns the current brush.
void setBrush (const Brush &brush)
 Sets the brush used to fill areas.
const Fontfont () const
 Returns the current font.
void setFont (const Font &font)
 Sets the font used to draw text.

Detailed Description

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.