Krita Source Code Documentation
Loading...
Searching...
No Matches
KisSmudgeLengthOptionData.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KISSMUDGELENGTHOPTIONDATA_H
7#define KISSMUDGELENGTHOPTIONDATA_H
8
10
11#include <KisOptionTuple.h>
13
15 : boost::equality_comparable<KisSmudgeLengthOptionMixInImpl>
16{
18
20 return lhs.mode == rhs.mode &&
21 lhs.smearAlpha == rhs.smearAlpha &&
22 lhs.useNewEngine == rhs.useNewEngine;
23 }
24
26 bool smearAlpha {true};
27 bool useNewEngine {false};
28
29 bool read(const KisPropertiesConfiguration *setting);
30 void write(KisPropertiesConfiguration *setting) const;
31};
32
34
35struct KisSmudgeLengthOptionData : KisOptionTuple<KisCurveOptionData, KisSmudgeLengthOptionMixIn>
36{
37 KisSmudgeLengthOptionData(const QString &prefix = "")
39 KoID("SmudgeRate", i18n("Smudge Length")))
40 {
41 }
42};
43
44
45#endif // KISSMUDGELENGTHOPTIONDATA_H
Definition KoID.h:30
KisSmudgeLengthOptionData(const QString &prefix="")
friend bool operator==(const KisSmudgeLengthOptionMixInImpl &lhs, const KisSmudgeLengthOptionMixInImpl &rhs)
void write(KisPropertiesConfiguration *setting) const
bool read(const KisPropertiesConfiguration *setting)