#include <vstroke.h>
Public Types | |
| enum | VStrokeType { none = 0 , solid = 1 , grad = 2 , patt = 3 , unknown = 4 } |
| enum | VLineCap { capButt = 0 , capRound = 1 , capSquare = 2 } |
| enum | VLineJoin { joinMiter = 0 , joinRound = 1 , joinBevel = 2 } |
Public Member Functions | |
| VStroke (VObject *parent, float width=1.0, const VLineCap cap=capButt, const VLineJoin join=joinMiter, float miterLimit=10.0) | |
| VStroke (const VColor &c, VObject *parent=0L, float width=1.0, const VLineCap cap=capButt, const VLineJoin join=joinMiter, float miterLimit=10.0) | |
| VStroke (const VStroke &stroke) | |
| void | setParent (VObject *parent) |
| VObject * | parent () const |
| VStrokeType | type () const |
| void | setType (VStrokeType type) |
| const VColor & | color () const |
| void | setColor (const VColor &color) |
| float | lineWidth () const |
| void | setLineWidth (float width) |
| VLineCap | lineCap () const |
| void | setLineCap (VLineCap cap) |
| VLineJoin | lineJoin () const |
| void | setLineJoin (VLineJoin join) |
| float | miterLimit () const |
| void | setMiterLimit (float limit) |
| VGradient & | gradient () |
| const VGradient & | gradient () const |
| VPattern & | pattern () |
| const VPattern & | pattern () const |
| VDashPattern & | dashPattern () |
| const VDashPattern & | dashPattern () const |
| void | save (TQDomElement &element) const |
| void | saveOasis (KoGenStyle &style) const |
| void | load (const TQDomElement &element) |
| void | loadOasis (const KoStyleStack &stack) |
| VStroke & | operator= (const VStroke &stroke) |
| void | transform (const TQWMatrix &m) |
Detailed Description
Manages stroke properties.
Supported are line join/cap styles equivalents to the qpainter ones. Also the line width in pixels and line stroke type (solid / gradient). Finally it also managed the dashing pattern, see VDashPattern.
Default is black solid outline of width 1 with miter join, butt cap style and no dashes.
Member Enumeration Documentation
◆ VLineCap
◆ VLineJoin
◆ VStrokeType
| enum VStroke::VStrokeType |
Constructor & Destructor Documentation
◆ VStroke() [1/4]
| VStroke::VStroke | ( | ) |
Definition at line 32 of file vstroke.cpp.
◆ VStroke() [2/4]
| VStroke::VStroke | ( | VObject * | parent, |
| float | width = 1.0, | ||
| const VLineCap | cap = capButt, | ||
| const VLineJoin | join = joinMiter, | ||
| float | miterLimit = 10.0 ) |
Definition at line 36 of file vstroke.cpp.
◆ VStroke() [3/4]
| VStroke::VStroke | ( | const VColor & | c, |
| VObject * | parent = 0L, | ||
| float | width = 1.0, | ||
| const VLineCap | cap = capButt, | ||
| const VLineJoin | join = joinMiter, | ||
| float | miterLimit = 10.0 ) |
Definition at line 47 of file vstroke.cpp.
◆ VStroke() [4/4]
| VStroke::VStroke | ( | const VStroke & | stroke | ) |
Definition at line 59 of file vstroke.cpp.
Member Function Documentation
◆ color()
◆ dashPattern() [1/2]
|
inline |
◆ dashPattern() [2/2]
|
inline |
◆ gradient() [1/2]
◆ gradient() [2/2]
◆ lineCap()
◆ lineJoin()
◆ lineWidth()
◆ load()
| void VStroke::load | ( | const TQDomElement & | element | ) |
Definition at line 169 of file vstroke.cpp.
◆ loadOasis()
| void VStroke::loadOasis | ( | const KoStyleStack & | stack | ) |
Definition at line 138 of file vstroke.cpp.
◆ miterLimit()
◆ operator=()
Definition at line 234 of file vstroke.cpp.
◆ parent()
◆ pattern() [1/2]
◆ pattern() [2/2]
◆ save()
| void VStroke::save | ( | TQDomElement & | element | ) | const |
Definition at line 76 of file vstroke.cpp.
◆ saveOasis()
| void VStroke::saveOasis | ( | KoGenStyle & | style | ) | const |
Definition at line 112 of file vstroke.cpp.
◆ setColor()
◆ setLineCap()
◆ setLineJoin()
◆ setLineWidth()
| void VStroke::setLineWidth | ( | float | width | ) |
Definition at line 66 of file vstroke.cpp.
◆ setMiterLimit()
◆ setParent()
◆ setType()
|
inline |
◆ transform()
| void VStroke::transform | ( | const TQWMatrix & | m | ) |
Definition at line 259 of file vstroke.cpp.
◆ type()
|
inline |
The documentation for this class was generated from the following files:
