Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/*
* SPDX-FileCopyrightText: 2022 Agata Cacko <[email protected]>
* SPDX-FileCopyrightText: 2009, 2010 Lukáš Tvrdý ([email protected])
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KIS_GRID_SHAPE_OPTION_DATA_H
#define KIS_GRID_SHAPE_OPTION_DATA_H
#include "kis_types.h"
#include <boost/operators.hpp>
#include <kritapaintop_export.h>
class KisPropertiesConfiguration;
const QString GRIDSHAPE_SHAPE = "GridShape/shape";
struct KisGridShapeOptionData : boost::equality_comparable<KisGridShapeOptionData>
{
inline friend bool operator==(const KisGridShapeOptionData &lhs, const KisGridShapeOptionData &rhs) {
return lhs.shape == rhs.shape
;
}
/// Ellipse, rectangle, line, pixel, anti-aliased pixel
int shape {0};
// functions
bool read(const KisPropertiesConfiguration *setting);
void write(KisPropertiesConfiguration *setting) const;
};
#endif // KIS_GRID_SHAPE_OPTION_DATA_H