Krita Source Code Documentation
Loading...
Searching...
No Matches
KisLodPreferences.h
Go to the documentation of this file.
1#ifndef KISLODPREFERENCES_H
2#define KISLODPREFERENCES_H
3
4#include <QFlags>
5#include "kis_assert.h"
6
8{
10 None = 0x0,
12 LodPreferred = 0x2
13 };
14 Q_DECLARE_FLAGS(PreferenceFlags, PreferenceFlag)
15
16 KisLodPreferences() = default;
17
25
30
31 PreferenceFlags flags() const {
32 return m_flags;
33 }
34
35 bool lodPreferred() const {
36 return m_flags & LodPreferred;
37 }
38
39 bool lodSupported() const {
40 return m_flags & LodSupported;
41 }
42
45 }
46
47private:
48 PreferenceFlags m_flags = None;
50};
51
52Q_DECLARE_OPERATORS_FOR_FLAGS(KisLodPreferences::PreferenceFlags)
53
54#endif // KISLODPREFERENCES_H
Q_DECLARE_FLAGS(KisUpdaterContextSnapshotEx, KisUpdaterContextSnapshotExTag)
#define KIS_SAFE_ASSERT_RECOVER(cond)
Definition kis_assert.h:126
Q_DECLARE_OPERATORS_FOR_FLAGS(KisBaseRectsWalker::SubtreeVisitFlags)
int desiredLevelOfDetail() const
bool lodSupported() const
PreferenceFlags flags() const
KisLodPreferences(int desiredLevelOfDetail)
PreferenceFlags m_flags
bool lodPreferred() const