Skip to content

armgit / krita

Public Imported from GitHub
0

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++
976 B
Raw Blame
/*
 *  SPDX-License-Identifier: GPL-3.0-or-later
 */

#ifndef KOMESHGRADIENTBACKGROUND_H
#define KOMESHGRADIENTBACKGROUND_H

#include "KoShapeBackground.h"
#include <QSharedDataPointer>
#include "SvgMeshGradient.h"

class KRITAFLAKE_EXPORT KoMeshGradientBackground : public KoShapeBackground
{
public:
    KoMeshGradientBackground(const SvgMeshGradient *gradient, const QTransform &matrix = QTransform());
    ~KoMeshGradientBackground();

    // Work around MSVC inability to generate copy ops with QSharedDataPointer.
    KoMeshGradientBackground(const KoMeshGradientBackground &);
    KoMeshGradientBackground& operator=(const KoMeshGradientBackground &);

    void paint(QPainter &painter, const QPainterPath &fillPath) const override;

    bool compareTo(const KoShapeBackground *other) const override;

    SvgMeshGradient* gradient();
    QTransform transform();

private:
    class Private;
    QSharedDataPointer<Private> d;
};


#endif // KOMESHGRADIENTBACKGROUND_H