Krita Source Code Documentation
Loading...
Searching...
No Matches
KisHairyBristleOptionData.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2010 Lukáš Tvrdý <lukast.dev@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KIS_HAIRYBRISTLE_OPTION_DATA_H
7#define KIS_HAIRYBRISTLE_OPTION_DATA_H
8
9
10#include "kis_types.h"
11#include <boost/operators.hpp>
12
15
16struct KisHairyBristleOptionData : boost::equality_comparable<KisHairyBristleOptionData>
17{
18 inline friend bool operator==(const KisHairyBristleOptionData &lhs, const KisHairyBristleOptionData &rhs) {
19 return lhs.useMousePressure == rhs.useMousePressure
24 && lhs.threshold == rhs.threshold
25 && lhs.antialias == rhs.antialias
26 && lhs.useCompositing == rhs.useCompositing
27 && lhs.connectedPath == rhs.connectedPath;
28 }
29
30 bool useMousePressure {false};
31 double scaleFactor {2.0};
32 double randomFactor {2.0};
33 double shearFactor {0.0};
34 double densityFactor {100.0};
35 bool threshold {false};
36 bool antialias {false};
37 bool useCompositing {false};
38 bool connectedPath {false};
39
40 bool read(const KisPropertiesConfiguration *setting);
41 void write(KisPropertiesConfiguration *setting) const;
42
44};
45
46#endif // KIS_HAIRYBRISTLE_OPTION_DATA_H
static bool qFuzzyCompare(half p1, half p2)
KisPaintopLodLimitations lodLimitations() const
bool read(const KisPropertiesConfiguration *setting)
friend bool operator==(const KisHairyBristleOptionData &lhs, const KisHairyBristleOptionData &rhs)
void write(KisPropertiesConfiguration *setting) const