Krita Source Code Documentation
Loading...
Searching...
No Matches
KisSprayShapeDynamicsOptionData.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_SPRAY_SHAPE_DYNAMICS_OPTION_DATA_H
8#define KIS_SPRAY_SHAPE_DYNAMICS_OPTION_DATA_H
9
10
11#include "kis_types.h"
12#include <boost/operators.hpp>
13#include <kritapaintop_export.h>
14
16
17struct KisSprayShapeDynamicsOptionData : boost::equality_comparable<KisSprayShapeDynamicsOptionData>
18{
20 return lhs.enabled == rhs.enabled
21 && lhs.randomSize == rhs.randomSize
22 && lhs.fixedRotation == rhs.fixedRotation
23 && lhs.randomRotation == rhs.randomRotation
24 && lhs.followCursor == rhs.followCursor
26 && lhs.fixedAngle == rhs.fixedAngle
30 }
31
32 bool enabled;
33 // particle size dynamics
35 // rotation dynamics
40 quint16 fixedAngle;
44
45 bool read(const KisPropertiesConfiguration *setting);
46 void write(KisPropertiesConfiguration *setting) const;
47};
48
49#endif // KIS_SPRAY_SHAPE_DYNAMICS_OPTION_DATA_H
friend bool operator==(const KisSprayShapeDynamicsOptionData &lhs, const KisSprayShapeDynamicsOptionData &rhs)
void write(KisPropertiesConfiguration *setting) const
bool read(const KisPropertiesConfiguration *setting)