karbon
VStroke Class Reference
#include <vstroke.h>
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.
Definition at line 48 of file 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 () | |
| 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 (QDomElement &element) const |
| void | saveOasis (KoGenStyle &style) const |
| void | load (const QDomElement &element) |
| void | loadOasis (const KoStyleStack &stack) |
| VStroke & | operator= (const VStroke &stroke) |
| void | transform (const QWMatrix &m) |
Member Enumeration Documentation
| enum VStroke::VStrokeType |
The documentation for this class was generated from the following files:

