Wt::WBrush Class Reference
[Painting system]

Class that defines the style for filling areas. More...

#include <Wt/WBrush>

List of all members.

Public Member Functions

 WBrush ()
 Default constructor.
 WBrush (WBrushStyle style)
 Construct a brush with a particular style.
 WBrush (const WColor &color)
 Construct a solid brush of a particular color.
 WBrush (GlobalColor color)
 Construct a solid brush with a particular standard color.
bool operator== (const WBrush &other) const
 Comparison operator.
bool operator!= (const WBrush &other) const
 Comparison operator.
void setStyle (WBrushStyle style)
 Change the brush style.
WBrushStyle style () const
 Returns the fill style.
void setColor (const WColor &color)
 Change the brush color.
const WColorcolor () const
 Returns the brush color.

Related Functions

(Note that these are not member functions.)

enum  WBrushStyle { NoBrush = 0, SolidPattern = 1 }
 Enumeration that indicates a fill style. More...


Detailed Description

Class that defines the style for filling areas.

A brush defines the properties of how areas (the interior of shapes) are filled.

See also:
WPainter::setBrush(), WPen

Constructor & Destructor Documentation

Wt::WBrush::WBrush (  ) 

Default constructor.

Constructs a brush with a NoBrush fill style.

Wt::WBrush::WBrush ( WBrushStyle  style  ) 

Construct a brush with a particular style.

Constructs a black brush with the indicated style.

Wt::WBrush::WBrush ( const WColor color  ) 

Construct a solid brush of a particular color.

Constructs a solid brush with the indicated color.

Wt::WBrush::WBrush ( GlobalColor  color  ) 

Construct a solid brush with a particular standard color.

Constructs a solid brush with the indicated color.


Member Function Documentation

bool Wt::WBrush::operator== ( const WBrush other  )  const

Comparison operator.

Returns true if the brushes are exactly the same.

bool Wt::WBrush::operator!= ( const WBrush other  )  const

Comparison operator.

Returns true if the brushes are different.

void Wt::WBrush::setStyle ( WBrushStyle  style  ) 

Change the brush style.

See also:
style()

WBrushStyle Wt::WBrush::style (  )  const [inline]

Returns the fill style.

See also:
setStyle(WBrushStyle)

void Wt::WBrush::setColor ( const WColor color  ) 

Change the brush color.

See also:
color()

const WColor& Wt::WBrush::color (  )  const [inline]

Returns the brush color.

See also:
color()


Generated on Fri Apr 24 16:25:59 2009 for Wt by doxygen 1.5.6