Krita Source Code Documentation
Loading...
Searching...
No Matches
KisHatchingPreferencesData.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2008 Lukas Tvrdy <lukast.dev@gmail.com>
3 * SPDX-FileCopyrightText: 2010 José Luis Vergara <pentalis@gmail.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7#ifndef KIS_HATCHING_PREFERENCES_DATA_H
8#define KIS_HATCHING_PREFERENCES_DATA_H
9
10
11#include "kis_types.h"
12#include <boost/operators.hpp>
13
15
16struct KisHatchingPreferencesData : boost::equality_comparable<KisHatchingPreferencesData>
17{
18 inline friend bool operator==(const KisHatchingPreferencesData &lhs, const KisHatchingPreferencesData &rhs) {
19 return lhs.useAntialias == rhs.useAntialias
22 }
23
24 bool useAntialias {false};
25 bool useOpaqueBackground {false};
27
28 bool read(const KisPropertiesConfiguration *setting);
29 void write(KisPropertiesConfiguration *setting) const;
30};
31
32#endif // KIS_HATCHING_PREFERENCES_DATA_H
friend bool operator==(const KisHatchingPreferencesData &lhs, const KisHatchingPreferencesData &rhs)
bool read(const KisPropertiesConfiguration *setting)
void write(KisPropertiesConfiguration *setting) const