File indexing completed on 2024-06-16 04:17:17

0001 /*
0002  *  SPDX-FileCopyrightText: 2022 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 #ifndef KISSMUDGEOVERLAYMODEOPTIONDATA_H
0007 #define KISSMUDGEOVERLAYMODEOPTIONDATA_H
0008 
0009 #include <QtGlobal>
0010 #include <boost/operators.hpp>
0011 
0012 class KisPropertiesConfiguration;
0013 class KisPaintopLodLimitations;
0014 
0015 struct KisSmudgeOverlayModeOptionData : boost::equality_comparable<KisSmudgeOverlayModeOptionData>
0016 {
0017     inline friend bool operator==(const KisSmudgeOverlayModeOptionData &lhs, const KisSmudgeOverlayModeOptionData &rhs) {
0018         return lhs.isChecked == rhs.isChecked;
0019     }
0020 
0021     bool isChecked {false};
0022 
0023     bool read(const KisPropertiesConfiguration *setting);
0024     void write(KisPropertiesConfiguration *setting) const;
0025 
0026     KisPaintopLodLimitations lodLimitations() const;
0027 };
0028 
0029 #endif // KISSMUDGEOVERLAYMODEOPTIONDATA_H