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: 2016 Dmitry Kazakov <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KOCLIPMASK_H
#define KOCLIPMASK_H
#include "kritaflake_export.h"
#include <KoFlakeCoordinateSystem.h>
#include <QList>
#include <QSharedDataPointer>
class KoShape;
class QRectF;
class QTransform;
class QPointF;
class QPainter;
class KRITAFLAKE_EXPORT KoClipMask
{
public:
KoClipMask();
~KoClipMask();
// Work around MSVC inability to generate copy ops with QSharedDataPointer.
KoClipMask(const KoClipMask &);
KoClipMask &operator=(const KoClipMask &);
KoClipMask *clone() const;
KoFlake::CoordinateSystem coordinates() const;
void setCoordinates(KoFlake::CoordinateSystem value);
KoFlake::CoordinateSystem contentCoordinates() const;
void setContentCoordinates(KoFlake::CoordinateSystem value);
QRectF maskRect() const;
void setMaskRect(const QRectF &value);
QList<KoShape *> shapes() const;
void setShapes(const QList<KoShape *> &value);
bool isEmpty() const;
void setExtraShapeOffset(const QPointF &value);
void drawMask(QPainter *painter, KoShape *shape);
private:
struct Private;
QSharedDataPointer<Private> m_d;
};
#endif // KOCLIPMASK_H