bwidgets/inc/basic_widgets/w/numeric_input.hpp
Andrea Blankenstijn 6149c48664 default fonts in theme, custom with FontHandler.
fix input highlight.
render multiline text.
remove default theme singleton.
scrollable area texture alignment.
2022-02-01 19:14:51 +01:00

25 lines
603 B
C++

#ifndef BWIDGETS_NUMERIC_INPUT_HPP
#define BWIDGETS_NUMERIC_INPUT_HPP
#include <basic_widgets/core/type/concepts.hpp>
#include <basic_widgets/w/base/input.hpp>
namespace bwidgets
{
template<Numeric T>
class NumericInput : public virtual Input<T>
{
public:
// Button increment/decrement step.
T button_step = 1;
// Get allowed value range.
[[nodiscard]] virtual auto value_range() const noexcept
-> const std::pair<T, T>& = 0;
// Set allowed value range.
virtual void value_range(T min, T max) = 0;
};
}
#endif