File indexing completed on 2024-12-22 04:16:10
0001 /* 0002 * SPDX-FileCopyrightText: 2008 Lukas Tvrdy <lukast.dev@gmail.com> 0003 * SPDX-FileCopyrightText: 2010 José Luis Vergara <pentalis@gmail.com> 0004 * 0005 * SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 #ifndef KIS_HATCHING_PREFERENCES_DATA_H 0008 #define KIS_HATCHING_PREFERENCES_DATA_H 0009 0010 0011 #include "kis_types.h" 0012 #include <boost/operators.hpp> 0013 0014 class KisPropertiesConfiguration; 0015 0016 struct KisHatchingPreferencesData : boost::equality_comparable<KisHatchingPreferencesData> 0017 { 0018 inline friend bool operator==(const KisHatchingPreferencesData &lhs, const KisHatchingPreferencesData &rhs) { 0019 return lhs.useAntialias == rhs.useAntialias 0020 && lhs.useOpaqueBackground == rhs.useOpaqueBackground 0021 && lhs.useSubpixelPrecision == rhs.useSubpixelPrecision; 0022 } 0023 0024 bool useAntialias {false}; 0025 bool useOpaqueBackground {false}; 0026 bool useSubpixelPrecision {false}; 0027 0028 bool read(const KisPropertiesConfiguration *setting); 0029 void write(KisPropertiesConfiguration *setting) const; 0030 }; 0031 0032 #endif // KIS_HATCHING_PREFERENCES_DATA_H