|
Krita Source Code Documentation
|
#include <WGConfig.h>
Public Types | |
| using | ST = typename std::conditional_t<std::is_enum<T>::value, std::underlying_type<T>, std::remove_cv<T>>::type |
| typedef T | ValueType |
Public Member Functions | |
| T | applyLimits (T value) const |
| QSize | boundFunc (const QSize &min, const QSize &val, const QSize &max) const |
| T | boundFunc (const T &min, const T &val, const T &max) const |
| T | readValue (const KConfigGroup &group) const |
| void | writeValue (KConfigGroup &group, const T &value) const |
Public Attributes | |
| T | defaultValue |
| bool | enforceLimits {false} |
| T | maxValue |
| T | minValue |
| QString | name |
Definition at line 41 of file WGConfig.h.
| using WGConfig::NumericSetting< T >::ST = typename std::conditional_t<std::is_enum<T>::value, std::underlying_type<T>, std::remove_cv<T>>::type |
Definition at line 46 of file WGConfig.h.
| typedef T WGConfig::NumericSetting< T >::ValueType |
Definition at line 43 of file WGConfig.h.
|
inline |
Definition at line 64 of file WGConfig.h.
References WGConfig::NumericSetting< T >::boundFunc(), WGConfig::NumericSetting< T >::enforceLimits, WGConfig::NumericSetting< T >::maxValue, WGConfig::NumericSetting< T >::minValue, and value().
|
inline |
Definition at line 78 of file WGConfig.h.
|
inline |
Definition at line 59 of file WGConfig.h.
|
inline |
Definition at line 48 of file WGConfig.h.
References WGConfig::NumericSetting< T >::applyLimits(), WGConfig::NumericSetting< T >::defaultValue, WGConfig::NumericSetting< T >::name, and value().
|
inline |
Definition at line 54 of file WGConfig.h.
References WGConfig::NumericSetting< T >::name, and value().
| T WGConfig::NumericSetting< T >::defaultValue |
Definition at line 71 of file WGConfig.h.
| bool WGConfig::NumericSetting< T >::enforceLimits {false} |
Definition at line 74 of file WGConfig.h.
| T WGConfig::NumericSetting< T >::maxValue |
Definition at line 73 of file WGConfig.h.
| T WGConfig::NumericSetting< T >::minValue |
Definition at line 72 of file WGConfig.h.
| QString WGConfig::NumericSetting< T >::name |
Definition at line 70 of file WGConfig.h.