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: 2017 Dmitry Kazakov <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KOSVGPASTE_H
#define KOSVGPASTE_H
#include "kritaflake_export.h"
#include <QList>
class KoShape;
class QRectF;
class QSizeF;
class QByteArray;
class KRITAFLAKE_EXPORT KoSvgPaste
{
public:
KoSvgPaste();
virtual ~KoSvgPaste();
bool hasShapes();
QList<KoShape*> fetchShapes(QRectF viewportInPx, qreal resolutionPPI, QSizeF *fragmentSize = nullptr);
static QList<KoShape*> fetchShapesFromData(const QByteArray &data, QRectF viewportInPx, qreal resolutionPPI, QSizeF *fragmentSize = nullptr);
private:
class Private;
Private *const d;
Q_DISABLE_COPY(KoSvgPaste);
};
#endif // KOSVGPASTE_H