|
Krita Source Code Documentation
|
Classes | |
| struct | empty_t |
Variables | |
| constexpr auto | foreach_arg |
| constexpr auto | foreach_tuple |
| template<typename T > | |
| constexpr auto | map_equal = [] (T value) { return zug::map([value](auto&& x) { return x == value; }); } |
| template<> | |
| constexpr auto | map_equal< qreal > = [] (qreal value) { return zug::map([value](auto&& x) { return qFuzzyCompare(x, value); }); } |
| template<typename T > | |
| constexpr auto | map_greater = [] (T value) { return zug::map([value](auto&& x) { return x > value; }); } |
| template<typename T > | |
| constexpr auto | map_greater_equal = [] (T value) { return zug::map([value](auto&& x) { return x >= value; }); } |
| template<> | |
| constexpr auto | map_greater_equal< qreal > = [] (qreal value) { return zug::map([value](auto&& x) { return x >= value || qFuzzyCompare(x, value); }); } |
| template<typename T > | |
| constexpr auto | map_less = [] (T value) { return zug::map([value](auto&& x) { return x < value; }); } |
| template<typename T > | |
| constexpr auto | map_less_equal = [] (T value) { return zug::map([value](auto&& x) { return x <= value; }); } |
| template<> | |
| constexpr auto | map_less_equal< qreal > = [] (qreal value) { return zug::map([value](auto&& x) { return x <= value || qFuzzyCompare(x, value); }); } |
| template<typename T > | |
| constexpr auto | map_multiply = [] (T coeff) { return zug::map([coeff](auto&& x) { return x * coeff; }); } |
| template<typename T > | |
| constexpr auto | map_not_equal = [] (T value) { return zug::map([value](auto&& x) { return x != value; }); } |
| template<> | |
| constexpr auto | map_not_equal< qreal > = [] (qreal value) { return zug::map([value](auto&& x) { return !qFuzzyCompare(x, value); }); } |
| constexpr auto | map_round = zug::map([](qreal x) -> int { return qRound(x); }) |
| template<typename T > | |
| constexpr auto | map_static_cast = zug::map([](auto&& x) { return static_cast<T>(x); }) |
| constexpr auto | to_functor |
kiszug is a namespace extending the functionality of zug library. It contains transducers, lenses and other tools that are not present in zug itself.
Naming convention exception:
The namespace follows naming convention of zug library, that is, all entities should be named in "snake_case" manner.
|
constexpr |
Definition at line 84 of file KisZug.h.
|
constexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
constexpr |
|
inlineconstexpr |
|
constexpr |
|
constexpr |
|
constexpr |