Krita Source Code Documentation
Loading...
Searching...
No Matches
KisSelectionBasedProcessingHelper.h
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: GPL-3.0-or-later
3 */
4
5#ifndef KISSELECTIONBASEDPROCESSINGHELPER_H
6#define KISSELECTIONBASEDPROCESSINGHELPER_H
7
8#include "kritaimage_export.h"
9#include "kis_types.h"
10
11#include <functional>
12
13class KisUndoAdapter;
14
15
16class KRITAIMAGE_EXPORT KisSelectionBasedProcessingHelper
17{
18public:
19 using Functor = std::function<void(KisPaintDeviceSP)>;
20public:
22
23 void setSelection(KisSelectionSP selection);
24
25 KUndo2Command *createInitCommand();
26 KUndo2Command *createInitCommand(Functor func);
27
28
29 void transformPaintDevice(KisPaintDeviceSP device, KisUndoAdapter *undoAdapter);
30
31 void transformPaintDevice(KisPaintDeviceSP device, KisUndoAdapter *undoAdapter, Functor func);
32
33
34private:
38};
39
40#endif // KISSELECTIONBASEDPROCESSINGHELPER_H
std::function< void(KisPaintDeviceSP)> Functor
typedef void(QOPENGLF_APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC)(GLuint buffer)