| Wt
    3.3.0
    | 
A value class that defines the style for pen strokes. More...
#include <Wt/WPen>
| Public Member Functions | |
| WPen () | |
| Creates a black cosmetic pen. | |
| WPen (PenStyle style) | |
| Creates a black pen with a particular style. | |
| WPen (const WColor &color) | |
| Creates a solid pen of a particular color. | |
| WPen (GlobalColor color) | |
| Creates 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) | 
| Sets the pen style. | |
| PenStyle | style () const | 
| Returns the pen style. | |
| void | setCapStyle (PenCapStyle style) | 
| Sets the style for rendering line ends. | |
| PenCapStyle | capStyle () const | 
| Returns the style for rendering line ends. | |
| void | setJoinStyle (PenJoinStyle style) | 
| Sets the style for rendering line joins. | |
| PenJoinStyle | joinStyle () const | 
| Returns the style for rendering line joins. | |
| void | setWidth (const WLength &width) | 
| Sets the pen width. | |
| const WLength & | width () const | 
| Returns the pen width. | |
| void | setColor (const WColor &color) | 
| Sets the pen color. | |
| const WColor & | color () const | 
| Returns the pen color. | |
| Related Functions | |
| (Note that these are not member functions.) | |
| enum | PenStyle { NoPen, SolidLine, DashLine, DotLine, DashDotLine, DashDotDotLine } | 
| Enumeration that indicates a pen style.  More... | |
| enum | PenCapStyle { FlatCap, SquareCap, RoundCap } | 
| Enumeration that indicates how line end points are rendered.  More... | |
| enum | PenJoinStyle { MiterJoin, BevelJoin, RoundJoin } | 
| Enumeration that indicates how line joins are rendered.  More... | |
A value class that defines the style for pen strokes.
A pen defines the properties of how lines (that may surround shapes) are rendered.
A pen with width 0 is a cosmetic pen, and is always rendered as 1 pixel width, regardless of transformations. Otherwized, the pen width is modified by the transformation set on the painter.
| Wt::WPen::WPen | ( | ) | 
| Wt::WPen::WPen | ( | PenStyle | style | ) | 
| Wt::WPen::WPen | ( | const WColor & | color | ) | 
| Wt::WPen::WPen | ( | GlobalColor | color | ) | 
| PenCapStyle Wt::WPen::capStyle | ( | ) | const | 
Returns the style for rendering line ends.
| PenJoinStyle Wt::WPen::joinStyle | ( | ) | const | 
Returns the style for rendering line joins.
| bool Wt::WPen::operator!= | ( | const WPen & | other | ) | const | 
Comparison operator.
Returns true if the pens are different. 
| bool Wt::WPen::operator== | ( | const WPen & | other | ) | const | 
Comparison operator.
Returns true if the pens are exactly the same. 
| void Wt::WPen::setCapStyle | ( | PenCapStyle | style | ) | 
Sets the style for rendering line ends.
| void Wt::WPen::setJoinStyle | ( | PenJoinStyle | style | ) | 
Sets the style for rendering line joins.
| void Wt::WPen::setWidth | ( | const WLength & | width | ) | 
| PenStyle Wt::WPen::style | ( | ) | const | 
Returns the pen style.
| const WLength& Wt::WPen::width | ( | ) | const | 
Returns the pen width.
 1.7.5.1
 1.7.5.1