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
12
class
KRITAFLAKE_EXPORT
KoMeshGradientBackground
:
public
KoShapeBackground
13
{
14
public
:
15
KoMeshGradientBackground
(
const
SvgMeshGradient
*gradient,
const
QTransform &matrix = QTransform());
16
~KoMeshGradientBackground
();
17
18
// Work around MSVC inability to generate copy ops with QSharedDataPointer.
19
KoMeshGradientBackground
(
const
KoMeshGradientBackground
&);
20
KoMeshGradientBackground
& operator=(
const
KoMeshGradientBackground
&);
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
29
private
:
30
class
Private
;
31
QSharedDataPointer<Private>
d
;
32
};
33
34
35
#endif
// KOMESHGRADIENTBACKGROUND_H
KoShapeBackground.h
SvgMeshGradient.h
KoMeshGradientBackground
Definition
KoMeshGradientBackground.h:13
KoMeshGradientBackground::d
QSharedDataPointer< Private > d
Definition
KoMeshGradientBackground.h:31
KoShapeBackground
Definition
KoShapeBackground.h:25
KoShapeBackground::compareTo
virtual bool compareTo(const KoShapeBackground *other) const =0
KoShapeBackground::paint
virtual void paint(QPainter &painter, const QPainterPath &fillPath) const =0
Paints the background using the given fill path.
SvgMeshGradient
Definition
SvgMeshGradient.h:16
Private
Definition
SvgTransformParser.cpp:20
libs
flake
KoMeshGradientBackground.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52