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: 2019 Dmitry Kazakov <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KISLAYERSTYLEKNOCKOUTBLOWER_H
#define KISLAYERSTYLEKNOCKOUTBLOWER_H
#include "kis_selection.h"
#include <QReadWriteLock>
class KisPainter;
class KRITAIMAGE_EXPORT KisLayerStyleKnockoutBlower
{
public:
KisLayerStyleKnockoutBlower();
KisLayerStyleKnockoutBlower(const KisLayerStyleKnockoutBlower &rhs);
KisSelectionSP knockoutSelectionLazy();
void setKnockoutSelection(KisSelectionSP selection);
void resetKnockoutSelection();
void apply(KisPainter *painter, KisPaintDeviceSP mergedStyle, const QRect &rect) const;
bool isEmpty() const;
private:
mutable QReadWriteLock m_lock;
KisSelectionSP m_knockoutSelection;
};
#endif // KISLAYERSTYLEKNOCKOUTBLOWER_H