11#ifndef KOSHAPESTROKE_H
12#define KOSHAPESTROKE_H
17#include "kritaflake_export.h"
46 explicit KoShapeStroke(qreal lineWidth,
const QColor &color = Qt::black);
53 void setCapStyle(Qt::PenCapStyle style);
55 Qt::PenCapStyle capStyle()
const;
57 void setJoinStyle(Qt::PenJoinStyle style);
59 Qt::PenJoinStyle joinStyle()
const;
61 void setLineWidth(qreal lineWidth);
63 qreal lineWidth()
const;
65 void setMiterLimit(qreal miterLimit);
67 qreal miterLimit()
const;
69 void setLineStyle(Qt::PenStyle style,
const QVector<qreal> &dashes);
71 Qt::PenStyle lineStyle()
const;
75 void setDashOffset(qreal dashOffset);
77 qreal dashOffset()
const;
82 void setColor(
const QColor &color);
85 void setLineBrush(
const QBrush & brush);
87 QBrush lineBrush()
const;
93 void paint(
const KoShape *shape, QPainter &painter)
const override;
96 QPen resultLinePen()
const;
virtual bool compareFillTo(const KoShapeStrokeModel *other)=0
virtual void strokeInsets(const KoShape *shape, KoInsets &insets) const =0
virtual bool isVisible() const =0
virtual void paint(const KoShape *shape, QPainter &painter) const =0
virtual bool compareStyleTo(const KoShapeStrokeModel *other)=0
virtual void paintMarkers(const KoShape *shape, QPainter &painter) const =0
paintMarkers Paints the markers if possible.
virtual qreal strokeMaxMarkersInset(const KoShape *shape) const =0
virtual bool hasTransparency() const =0
QColor color() const
Returns the color.
Q_DECLARE_METATYPE(KisPaintopLodLimitations)