Krita Source Code Documentation
Loading...
Searching...
No Matches
KisMaskingBrushOptionProperties.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 KISMASKINGBRUSHOPTIONPROPERTIES_H
8
#define KISMASKINGBRUSHOPTIONPROPERTIES_H
9
10
#include "kritapaintop_export.h"
11
#include <
kis_types.h
>
12
#include <
KisBrushModel.h
>
13
#include <
KoCompositeOpRegistry.h
>
14
15
class
KisResourcesInterface
;
16
using
KisResourcesInterfaceSP
=
QSharedPointer<KisResourcesInterface>
;
17
18
class
KoCanvasResourcesInterface
;
19
using
KoCanvasResourcesInterfaceSP
=
QSharedPointer<KoCanvasResourcesInterface>
;
20
21
namespace
KisBrushModel
{
22
struct
PAINTOP_EXPORT
MaskingBrushData
:
public
boost::equality_comparable<MaskingBrushData>
23
{
24
bool
isEnabled =
false
;
25
BrushData
brush
;
26
QString compositeOpId =
COMPOSITE_MULT
;
27
bool
useMasterSize =
true
;
28
qreal masterSizeCoeff = 1.0;
29
30
friend
bool
operator==
(
const
MaskingBrushData
&lhs,
const
MaskingBrushData
&rhs);
31
static
MaskingBrushData
read(
const
KisPropertiesConfiguration
*config, qreal masterBrushSize,
KisResourcesInterfaceSP
resourcesInterface);
32
void
write(
KisPropertiesConfiguration
*config)
const
;
33
};
34
35
bool
operator==
(
const
MaskingBrushData
&lhs,
const
MaskingBrushData
&rhs);
36
37
}
38
39
#endif
// KISMASKINGBRUSHOPTIONPROPERTIES_H
KisBrushModel.h
KoCompositeOpRegistry.h
COMPOSITE_MULT
const QString COMPOSITE_MULT
Definition
KoCompositeOpRegistry.h:47
KisResourcesInterface
a provider-like interface class for accessing resource sources in Krita.
Definition
KisResourcesInterface.h:41
KoCanvasResourcesInterface
An abstract class for providing access to canvas resources like current gradient and Fg/Bg colors.
Definition
KoCanvasResourcesInterface.h:24
QSharedPointer< KisResourcesInterface >
kis_types.h
KisBrushModel
Definition
KisBrushModel.cpp:13
KisBrushModel::operator==
bool operator==(const PrecisionData &lhs, const PrecisionData &rhs)
Definition
kis_precision_option.cpp:57
KisBrushModel::BrushData
Definition
KisBrushModel.h:149
KisBrushModel::MaskingBrushData
Definition
KisMaskingBrushOptionProperties.h:23
KisBrushModel::MaskingBrushData::brush
BrushData brush
Definition
KisMaskingBrushOptionProperties.h:25
KisBrushModel::MaskingBrushData::operator==
friend bool operator==(const MaskingBrushData &lhs, const MaskingBrushData &rhs)
KisPropertiesConfiguration
Definition
kis_properties_configuration.cc:26
plugins
paintops
libpaintop
KisMaskingBrushOptionProperties.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52