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>
14
17
20
21namespace KisBrushModel {
22struct PAINTOP_EXPORT MaskingBrushData : public boost::equality_comparable<MaskingBrushData>
23{
24 bool isEnabled = false;
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
35bool operator==(const MaskingBrushData &lhs, const MaskingBrushData &rhs);
36
37}
38
39#endif // KISMASKINGBRUSHOPTIONPROPERTIES_H
const QString COMPOSITE_MULT
a provider-like interface class for accessing resource sources in Krita.
An abstract class for providing access to canvas resources like current gradient and Fg/Bg colors.
bool operator==(const PrecisionData &lhs, const PrecisionData &rhs)
friend bool operator==(const MaskingBrushData &lhs, const MaskingBrushData &rhs)