#include <WPen>
Public Member Functions | |
WPen () | |
Default constructor. | |
WPen (PenStyle style) | |
Construct a black pen with a particular style. | |
WPen (const WColor &color) | |
Construct a solid pen of a particular color. | |
WPen (GlobalColor color) | |
Construct a solid pen of a particular standard color. | |
bool | operator== (const WPen &other) const |
Comparison operator. | |
bool | operator!= (const WPen &other) const |
Comparison operator. | |
void | setStyle (PenStyle style) |
Change the pen style. | |
PenStyle | style () const |
Return the pen style. | |
void | setCapStyle (PenCapStyle style) |
Change the style for rendering line ends. | |
PenCapStyle | capStyle () const |
Returns the style for rendering line ends. | |
void | setJoinStyle (PenJoinStyle style) |
Change the style for rendering line joins. | |
PenJoinStyle | joinStyle () const |
Returns the style for rendering line joins. | |
void | setWidth (const WLength &width) |
Change the pen width. | |
const WLength & | width () const |
Returns the pen width. | |
void | setColor (const WColor &color) |
Change the pen color. | |
const WColor & | color () const |
Returns the pen color. |
A pen defines the properties of how lines (that may surround shapes) are rendered.
A pen of width 0 is a cosmetic pen, and is always rendered as 1 pixel width.
Wt::WPen::WPen | ( | ) |
Wt::WPen::WPen | ( | PenStyle | style | ) |
Wt::WPen::WPen | ( | const WColor & | color | ) |
Wt::WPen::WPen | ( | GlobalColor | color | ) |
bool Wt::WPen::operator== | ( | const WPen & | other | ) | const |
Comparison operator.
Returns true if the pens are exactly the same.
bool Wt::WPen::operator!= | ( | const WPen & | other | ) | const |
Comparison operator.
Returns true if the pens are different.
PenStyle Wt::WPen::style | ( | ) | const [inline] |
void Wt::WPen::setCapStyle | ( | PenCapStyle | style | ) |
PenCapStyle Wt::WPen::capStyle | ( | ) | const [inline] |
void Wt::WPen::setJoinStyle | ( | PenJoinStyle | style | ) |
PenJoinStyle Wt::WPen::joinStyle | ( | ) | const [inline] |
void Wt::WPen::setWidth | ( | const WLength & | width | ) |
const WLength& Wt::WPen::width | ( | ) | const [inline] |