Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeStrokeModel.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 *
3 * SPDX-FileCopyrightText: 2006 Thomas Zander <zander@kde.org>
4 * SPDX-FileCopyrightText: 2007, 2009 Thorsten Zachmann <zachmann@kde.org>
5 * SPDX-FileCopyrightText: 2012 Inge Wallin <inge@lysator.liu.se>
6 *
7 * SPDX-License-Identifier: LGPL-2.0-or-later
8 */
9
10#ifndef KOSHAPESTROKEMODEL_H
11#define KOSHAPESTROKEMODEL_H
12
13#include "kritaflake_export.h"
14
15#include <QtGlobal>
16
17class KoShape;
19struct KoInsets;
20
21class QColor;
22class QPainter;
23
32class KRITAFLAKE_EXPORT KoShapeStrokeModel
33{
34public:
35 virtual ~KoShapeStrokeModel();
36
42 virtual void strokeInsets(const KoShape *shape, KoInsets &insets) const = 0;
43
48 virtual qreal strokeMaxMarkersInset(const KoShape *shape) const = 0;
49
54 virtual bool hasTransparency() const = 0;
62 virtual void paint(const KoShape *shape, QPainter &painter) const = 0;
63
69 virtual void paintMarkers(const KoShape *shape, QPainter &painter) const = 0;
70
71 virtual bool compareFillTo(const KoShapeStrokeModel *other) = 0;
72 virtual bool compareStyleTo(const KoShapeStrokeModel *other) = 0;
73 virtual bool isVisible() const = 0;
74};
75
76#endif
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