Krita Source Code Documentation
Loading...
Searching...
No Matches
KisRoundMarkerOpOptionData.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KIS_ROUNDMARKEROP_OPTION_DATA_H
7#define KIS_ROUNDMARKEROP_OPTION_DATA_H
8
9
10#include "kis_types.h"
11#include <boost/operators.hpp>
12
14
15struct KisRoundMarkerOpOptionData : boost::equality_comparable<KisRoundMarkerOpOptionData>
16{
17 inline friend bool operator==(const KisRoundMarkerOpOptionData &lhs, const KisRoundMarkerOpOptionData &rhs) {
18 return qFuzzyCompare(lhs.diameter, rhs.diameter)
19 && qFuzzyCompare(lhs.spacing, rhs.spacing)
20 && lhs.useAutoSpacing == rhs.useAutoSpacing
22 }
23
24 qreal diameter {30.0};
25 qreal spacing {0.02};
26 bool useAutoSpacing {false};
27 qreal autoSpacingCoeff {1.0};
28
29 bool read(const KisPropertiesConfiguration *setting);
30 void write(KisPropertiesConfiguration *setting) const;
31};
32
33#endif // KIS_ROUNDMARKEROP_OPTION_DATA_H
static bool qFuzzyCompare(half p1, half p2)
bool read(const KisPropertiesConfiguration *setting)
friend bool operator==(const KisRoundMarkerOpOptionData &lhs, const KisRoundMarkerOpOptionData &rhs)
void write(KisPropertiesConfiguration *setting) const