karbon

VStroke Class Reference

#include <vstroke.h>

List of all members.


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 (VObject *parent=0L, 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)
VObjectparent () const
VStrokeType type () const
void setType (VStrokeType type)
const VColorcolor () 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)
VGradientgradient ()
const VGradientgradient () const
VPatternpattern ()
const VPatternpattern () const
VDashPatterndashPattern ()
const VDashPatterndashPattern () const
void save (QDomElement &element) const
void saveOasis (KoGenStyle &style) const
void load (const QDomElement &element)
void loadOasis (const KoStyleStack &stack)
VStrokeoperator= (const VStroke &stroke)
void transform (const QWMatrix &m)

Member Enumeration Documentation

enum VStroke::VStrokeType
 

Enumerator:
solid  no stroke at all
grad  solid stroke
patt  gradient as stroke
unknown  pattern as stroke

Definition at line 51 of file vstroke.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys