diff --git a/include/halp/controls.sliders.hpp b/include/halp/controls.sliders.hpp index dc4ea65..e59cf41 100644 --- a/include/halp/controls.sliders.hpp +++ b/include/halp/controls.sliders.hpp @@ -4,6 +4,7 @@ #include #include +#include #include #include @@ -24,6 +25,13 @@ template inline constexpr auto default_irange = irange{0, 127, 64}; // Range still constrained as many ui widgets bail out past some ~2^24 value +template +inline constexpr auto positive_range_min + = range{0., std::numeric_limits::max() / 256., 0.}; +template +inline constexpr auto positive_range_max + = range{0., std::numeric_limits::max() / 256., 1.}; + template inline constexpr auto free_range_min = range{ std::numeric_limits::lowest() / 256., std::numeric_limits::max() / 256., @@ -33,13 +41,6 @@ inline constexpr auto free_range_max = range{ std::numeric_limits::lowest() / 256., std::numeric_limits::max() / 256., 1.}; -template -inline constexpr auto free_positive_range_min - = range{0., std::numeric_limits::max() / 256., 0.}; -template -inline constexpr auto free_positive_range_max - = range{0., std::numeric_limits::max() / 256., 1.}; - template struct init_range_t {