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
15
class
KUndo2Command
;
16
class
KoShape
;
17
class
QColor;
18
class
QTransform;
19
class
QGradient;
20
class
SvgMeshGradient
;
21
22
class
KRITAFLAKE_EXPORT
KoShapeFillWrapper
23
{
24
public
:
25
KoShapeFillWrapper
(
KoShape
*shape,
KoFlake::FillVariant
fillVariant);
26
KoShapeFillWrapper
(
QList<KoShape*>
shapes,
KoFlake::FillVariant
fillVariant);
27
28
~KoShapeFillWrapper
();
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
48
private
:
49
struct
Private
;
50
const
QScopedPointer<Private>
m_d
;
51
};
52
53
#endif
// KOSHAPEFILLWRAPPER_H
KoFlake.h
KUndo2Command
Definition
kundo2stack.h:87
KoShapeFillWrapper
Definition
KoShapeFillWrapper.h:23
KoShapeFillWrapper::m_d
const QScopedPointer< Private > m_d
Definition
KoShapeFillWrapper.h:50
KoShape
Definition
KoShape.h:92
QList
Definition
KisQStringListFwd.h:16
SvgMeshGradient
Definition
SvgMeshGradient.h:16
KoFlake::FillType
FillType
Definition
KoFlake.h:33
KoFlake::FillVariant
FillVariant
Definition
KoFlake.h:28
Private
Definition
SvgTransformParser.cpp:20
libs
flake
KoShapeFillWrapper.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52