Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeFillWrapper.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KOSHAPEFILLWRAPPER_H
8#define KOSHAPEFILLWRAPPER_H
9
10#include "kritaflake_export.h"
11#include <QScopedPointer>
12#include <QList>
13#include <KoFlake.h>
14
15class KUndo2Command;
16class KoShape;
17class QColor;
18class QTransform;
19class QGradient;
20class SvgMeshGradient;
21
22class KRITAFLAKE_EXPORT KoShapeFillWrapper
23{
24public:
27
29
30 bool isMixedFill() const;
31 KoFlake::FillType type() const;
32
33 QColor color() const;
34 const QGradient* gradient() const;
35 QTransform gradientTransform() const;
36 bool hasZeroLineWidth() const;
37 const SvgMeshGradient* meshgradient() const;
38
39 KUndo2Command* setColor(const QColor &color);
40 KUndo2Command* setLineWidth(const float &lineWidth);
41
42 KUndo2Command* setGradient(const QGradient *gradient, const QTransform &transform);
43 KUndo2Command* applyGradient(const QGradient *gradient);
44 KUndo2Command* applyGradientStopsOnly(const QGradient *gradient);
45
46 KUndo2Command* setMeshGradient(const SvgMeshGradient *gradient, const QTransform &transform);
47
48private:
49 struct Private;
50 const QScopedPointer<Private> m_d;
51};
52
53#endif // KOSHAPEFILLWRAPPER_H
const QScopedPointer< Private > m_d
FillVariant
Definition KoFlake.h:28