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 ()
 Creates a brush.
 WBrush (WBrushStyle style)
 Creates a black brush with given style.
 WBrush (const WColor &color)
 Creates a solid brush of a given color.
 WBrush (GlobalColor color)
 Creates 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)
 Sets the brush style.
WBrushStyle style () const
 Returns the fill style.
void setColor (const WColor &color)
 Sets 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. A brush is defined using a color and a fill type (currently only solid fills are supported).

See also:
WPainter::setBrush(), WPen

Constructor & Destructor Documentation

Wt::WBrush::WBrush (  ) 

Creates a brush.

Creates a brush with a NoBrush fill style.

Wt::WBrush::WBrush ( WBrushStyle  style  ) 

Creates a black brush with given style.

Creates a black brush with the indicated style.

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

Creates a solid brush of a given color.

Creates a solid brush with the indicated color.

Wt::WBrush::WBrush ( GlobalColor  color  ) 

Creates a solid brush with a particular standard color.

Creates a solid brush with the indicated color.


Member Function Documentation

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

Returns the brush color.

See also:
color()
bool Wt::WBrush::operator!= ( const WBrush other  )  const

Comparison operator.

Returns true if the brushes are different.

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

Comparison operator.

Returns true if the brushes are exactly the same.

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

Sets the brush color.

See also:
color()
void Wt::WBrush::setStyle ( WBrushStyle  style  ) 

Sets the brush style.

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

Returns the fill style.

See also:
setStyle(WBrushStyle)

Generated on Thu May 13 05:16:15 2010 for Wt by doxygen 1.6.3