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 KISMASKINGBRUSHRENDERER_H
#define KISMASKINGBRUSHRENDERER_H
#include "kis_types.h"
class KisMaskingBrushCompositeOpBase;
class KisMaskingBrushRenderer
{
public:
KisMaskingBrushRenderer(KisPaintDeviceSP dstDevice, const QString &compositeOpId);
~KisMaskingBrushRenderer();
KisPaintDeviceSP strokeDevice() const;
KisPaintDeviceSP maskDevice() const;
void updateProjection(const QRect &rc);
private:
KisPaintDeviceSP m_strokeDevice;
KisPaintDeviceSP m_maskDevice;
KisPaintDeviceSP m_dstDevice;
QScopedPointer<KisMaskingBrushCompositeOpBase> m_compositeOp;
};
#endif // KISMASKINGBRUSHRENDERER_H