24#include <tqvaluelist.h>
27#include "vdashpattern.h"
30#include <koffice_export.h>
48class KARBONBASE_EXPORT VStroke
75 VStroke( VObject* parent, float width = 1.0, const VLineCap cap = capButt,
76 const VLineJoin join = joinMiter, float miterLimit = 10.0 );
77 VStroke( const VColor &c, VObject* parent = 0L, float width = 1.0, const VLineCap cap = capButt,
78 const VLineJoin join = joinMiter, float miterLimit = 10.0 );
79 VStroke( const VStroke& stroke );
81 void setParent( VObject* parent ) { m_parent = parent; }
82 VObject* parent() const { return m_parent; }
84 VStrokeType type() const { return m_type; }
85 void setType( VStrokeType type ) { m_type = type; }
87 const VColor& color() const { return m_color; }
88 void setColor( const VColor& color ) { m_color = color; }
90 float lineWidth() const { return m_lineWidth; }
91 void setLineWidth( float width );
93 VLineCap lineCap() const { return m_lineCap; }
94 void setLineCap( VLineCap cap ) { m_lineCap = cap; }
96 VLineJoin lineJoin() const { return m_lineJoin; }
97 void setLineJoin( VLineJoin join ) { m_lineJoin = join; }
99 float miterLimit() const { return m_miterLimit; }
100 void setMiterLimit( float limit ) { m_miterLimit = limit; }
102 VGradient& gradient() { return m_gradient; }
103 const VGradient& gradient() const { return m_gradient; }
105 VPattern& pattern() { return m_pattern; }
106 const VPattern& pattern() const { return m_pattern; }
108 VDashPattern& dashPattern() { return m_dashPattern; }
109 const VDashPattern& dashPattern() const { return m_dashPattern; }
111 void save( TQDomElement& element ) const;
112 void saveOasis( KoGenStyle &style ) const;
113 void load( const TQDomElement& element );
114 void loadOasis( const KoStyleStack &stack );
117 VStroke& operator=( const VStroke& stroke );
119 void transform( const TQWMatrix& m );
125 VGradient m_gradient;
129 VLineCap m_lineCap : 2;
130 VLineJoin m_lineJoin : 2;
131 VStrokeType m_type : 3;
132 VDashPattern m_dashPattern;
The base class for all karbon objects.
@ unknown pattern as stroke
|