Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_spontaneous_job.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2013 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_SPONTANEOUS_JOB_H
8#define __KIS_SPONTANEOUS_JOB_H
9
11
18class KRITAIMAGE_EXPORT KisSpontaneousJob : public KisRunnableWithDebugName
19{
20public:
21 virtual bool overrides(const KisSpontaneousJob *otherJob) = 0;
22 virtual int levelOfDetail() const = 0;
23 bool isExclusive() const {
24 return m_isExclusive;
25 }
26
27protected:
28 void setExclusive(bool value) {
29 m_isExclusive = value;
30 }
31
32private:
33 bool m_isExclusive = false;
34};
35
36#endif /* __KIS_SPONTANEOUS_JOB_H */
float value(const T *src, size_t ch)
virtual bool overrides(const KisSpontaneousJob *otherJob)=0
virtual int levelOfDetail() const =0
void setExclusive(bool value)