Krita Source Code Documentation
Loading...
Searching...
No Matches
KisLayerStyleKnockoutBlower.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KISLAYERSTYLEKNOCKOUTBLOWER_H
7#define KISLAYERSTYLEKNOCKOUTBLOWER_H
8
9#include "kis_selection.h"
10#include <QReadWriteLock>
11
12class KisPainter;
13
14
15class KRITAIMAGE_EXPORT KisLayerStyleKnockoutBlower
16{
17public:
20
21 KisSelectionSP knockoutSelectionLazy();
22
23 void setKnockoutSelection(KisSelectionSP selection);
24 void resetKnockoutSelection();
25
26
27 void apply(KisPainter *painter, KisPaintDeviceSP mergedStyle, const QRect &rect) const;
28 bool isEmpty() const;
29
30private:
31 mutable QReadWriteLock m_lock;
33};
34
35#endif // KISLAYERSTYLEKNOCKOUTBLOWER_H