Krita Source Code Documentation
Loading...
Searching...
No Matches
KisExperimentOpOptionData.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022 Agata Cacko <cacko.azh@gmail.com>
3 * SPDX-FileCopyrightText: 2010 Lukáš Tvrdý <lukast.dev@gmail.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7#ifndef KIS_EXPERIMENTOP_OPTION_DATA_H
8#define KIS_EXPERIMENTOP_OPTION_DATA_H
9
10
11#include "kis_types.h"
12#include <boost/operators.hpp>
13#include <kritapaintop_export.h>
14
16
21
22struct KisExperimentOpOptionData : boost::equality_comparable<KisExperimentOpOptionData>
23{
24 inline friend bool operator==(const KisExperimentOpOptionData &lhs, const KisExperimentOpOptionData &rhs) {
27 && lhs.isSpeedEnabled == rhs.isSpeedEnabled
28 && qFuzzyCompare(lhs.speed, rhs.speed)
31 && lhs.windingFill == rhs.windingFill
32 && lhs.hardEdge == rhs.hardEdge
33 && lhs.fillType == rhs.fillType;
34 }
35
36
38 qreal displacement {50.0};
39
40 bool isSpeedEnabled {false};
41 qreal speed {50.0};
42
43 bool isSmoothingEnabled {true};
44 qreal smoothing {20.0};
45
46 bool windingFill {true};
47 bool hardEdge {false};
49
50 bool read(const KisPropertiesConfiguration *setting);
51 void write(KisPropertiesConfiguration *setting) const;
52};
53
54#endif // KIS_EXPERIMENTOP_OPTION_DATA_H
static bool qFuzzyCompare(half p1, half p2)
bool read(const KisPropertiesConfiguration *setting)
friend bool operator==(const KisExperimentOpOptionData &lhs, const KisExperimentOpOptionData &rhs)
void write(KisPropertiesConfiguration *setting) const