Class representing a user input. More...
#include <eagine/application/input.hpp>
Public Member Functions | |
operator bool () const noexcept | |
Indicates if the current value is non-zero. | |
![]() | |
template<typename... I> | |
constexpr | value_with_history (I &&... initial) |
Initialized the individual revisions of this value. | |
auto | values () const noexcept -> const value_with_history_storage< T, N > & |
Returns a reference to the value storage. | |
auto | get () const noexcept |
Returns the current revision of the value. More... | |
auto | value () const noexcept |
Returns the current revision of the value. More... | |
auto | old_value () const noexcept |
Returns the previous revision of the value. More... | |
auto | value (bool old) const noexcept |
Returns the current or previous revision of the value. More... | |
operator T () const noexcept | |
Returns the current revision of the value. More... | |
auto | delta () const noexcept |
Returns the difference between the current and the previous revision. | |
auto | deltas () const noexcept |
Returns the differences between the adjacent revisions. | |
auto | distance () const noexcept |
Returns the distance between the current and the previous revisions. | |
auto | changed () const noexcept -> bool |
Indicates if the current and previous revisions differ. | |
template<typename U > | |
auto | as () const |
Returns this with the values cast to new type U . | |
void | sync () |
Synchronize the historic revisions to the current value. More... | |
Class representing a user input.