Krita Source Code Documentation
Loading...
Searching...
No Matches
KoMeshGradientBackground.h
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: GPL-3.0-or-later
3 */
4
5#ifndef KOMESHGRADIENTBACKGROUND_H
6#define KOMESHGRADIENTBACKGROUND_H
7
8#include "KoShapeBackground.h"
9#include <QSharedDataPointer>
10#include "SvgMeshGradient.h"
11
12class KRITAFLAKE_EXPORT KoMeshGradientBackground : public KoShapeBackground
13{
14public:
15 KoMeshGradientBackground(const SvgMeshGradient *gradient, const QTransform &matrix = QTransform());
17
18 // Work around MSVC inability to generate copy ops with QSharedDataPointer.
21
22 void paint(QPainter &painter, const QPainterPath &fillPath) const override;
23
24 bool compareTo(const KoShapeBackground *other) const override;
25
26 SvgMeshGradient* gradient();
27 QTransform transform();
28
29private:
30 class Private;
31 QSharedDataPointer<Private> d;
32};
33
34
35#endif // KOMESHGRADIENTBACKGROUND_H
QSharedDataPointer< Private > d
virtual bool compareTo(const KoShapeBackground *other) const =0
virtual void paint(QPainter &painter, const QPainterPath &fillPath) const =0
Paints the background using the given fill path.