Paint Class Reference

#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 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 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.