Krita Source Code Documentation
Loading...
Searching...
No Matches
KisAirbrushOptionData.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 KISAIRBRUSHOPTIONDATA_H
7#define KISAIRBRUSHOPTIONDATA_H
8
9#include <QtGlobal>
10#include <boost/operators.hpp>
11#include <kritapaintop_export.h>
12
14
15
16struct PAINTOP_EXPORT KisAirbrushOptionData : boost::equality_comparable<KisAirbrushOptionData>
17{
18 inline friend bool operator==(const KisAirbrushOptionData &lhs, const KisAirbrushOptionData &rhs) {
19 return lhs.isChecked == rhs.isChecked &&
22 }
23
24 bool isChecked {false};
25 qreal airbrushRate {50.0};
26 bool ignoreSpacing {false};
27
28 bool read(const KisPropertiesConfiguration *setting);
29 void write(KisPropertiesConfiguration *setting) const;
30};
31
32#endif // KISAIRBRUSHOPTIONDATA_H
static bool qFuzzyCompare(half p1, half p2)
friend bool operator==(const KisAirbrushOptionData &lhs, const KisAirbrushOptionData &rhs)