Faith::Brush Class Reference

used to fill in painter More...

#include <faith/brush.h>

List of all members.

Public Types

enum  Style {
  NoBrush, SolidPattern, HorPattern, VerPattern,

Public Member Functions

 Brush ()
 Brush (Style style)
 Brush (const Color &color, const Bitmap &bitmap)
 Brush (const Pixmap &pixmap)
 Brush (const Brush &copy)
 ~Brush ()
Brushoperator= (const Brush &copy)
bool operator== (const Brush &other)
bool operator!= (const Brush &other)
const Pixmappixmap () const
Style style () const

Detailed Description

used to fill in painter

A brush is used to paint fills and regions in class Painter

Member Enumeration Documentation

enum Faith::Brush::Style

a builtin style:


Constructor & Destructor Documentation

Faith::Brush::Brush (  ) 

creates a brush with the style of NoBrush

Faith::Brush::Brush ( Style  style  ) 

makes a Brush with a builtin style.

Faith::Brush::Brush ( const Color color,
const Bitmap bitmap 

creates a brush in which every bit in the given bitmap that is equal to 1 has the given color

Faith::Brush::Brush ( const Pixmap pixmap  ) 

creates a brush with the given pixmap tiled

Faith::Brush::Brush ( const Brush copy  ) 

copies this brush

Faith::Brush::~Brush (  ) 

Member Function Documentation

bool Faith::Brush::operator!= ( const Brush other  )  [inline]

Brush& Faith::Brush::operator= ( const Brush copy  ) 

bool Faith::Brush::operator== ( const Brush other  ) 

const Pixmap& Faith::Brush::pixmap (  )  const

the pixmap or bitmap, even when set as a result of using a builtin style

Style Faith::Brush::style (  )  const

the style set, or CustomPattern if a builtin style was not used

The documentation for this class was generated from the following file:
Generated on Fri Sep 1 00:23:08 2006 for Faith by  doxygen 1.4.7