#include <Wt/WBrush>
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 WColor & | color () 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... |
A brush defines the properties of how areas (the interior of shapes) are filled.
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.
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 | ) |
WBrushStyle Wt::WBrush::style | ( | ) | const [inline] |