Krita Source Code Documentation
Loading...
Searching...
No Matches
KisGridShapeOptionData.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022 Agata Cacko <cacko.azh@gmail.com>
3 * SPDX-FileCopyrightText: 2009, 2010 Lukáš Tvrdý (lukast.dev@gmail.com)
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7#ifndef KIS_GRID_SHAPE_OPTION_DATA_H
8#define KIS_GRID_SHAPE_OPTION_DATA_H
9
10
11#include "kis_types.h"
12#include <boost/operators.hpp>
13#include <kritapaintop_export.h>
14
16
17
18const QString GRIDSHAPE_SHAPE = "GridShape/shape";
19
20
21struct KisGridShapeOptionData : boost::equality_comparable<KisGridShapeOptionData>
22{
23
24 inline friend bool operator==(const KisGridShapeOptionData &lhs, const KisGridShapeOptionData &rhs) {
25 return lhs.shape == rhs.shape
26 ;
27 }
28
29
31 int shape {0};
32
33 // functions
34 bool read(const KisPropertiesConfiguration *setting);
35 void write(KisPropertiesConfiguration *setting) const;
36
37};
38
39#endif // KIS_GRID_SHAPE_OPTION_DATA_H
const QString GRIDSHAPE_SHAPE
friend bool operator==(const KisGridShapeOptionData &lhs, const KisGridShapeOptionData &rhs)
bool read(const KisPropertiesConfiguration *setting)
int shape
Ellipse, rectangle, line, pixel, anti-aliased pixel.
void write(KisPropertiesConfiguration *setting) const