10#include <egt/animation.h>
11#include <egt/detail/math.h>
12#include <egt/object.h>
13#include <egt/signal.h>
45 explicit operator T()
const
117 explicit operator T()
const
181 if (detail::change_if_diff<>(
m_end,
end))
Base object class with fundamental properties.
Definition object.h:32
Manages a value in a range.
Definition value.h:88
void start(T start)
Set the start value.
Definition value.h:165
T m_start
The start value.
Definition value.h:188
EGT_NODISCARD T start() const
Get the start value.
Definition value.h:158
EGT_NODISCARD T end() const
Get the end value.
Definition value.h:172
RangeValue(T start, T end, T value={}) noexcept
Definition value.h:104
Signal on_value_changed
Event signal.
Definition value.h:96
RangeValue< T > & operator=(T value)
Assign the current value.
Definition value.h:123
EGT_NODISCARD T value() const
Get the current value.
Definition value.h:130
void end(T end)
Set the end value.
Definition value.h:179
bool value(T value)
Set value.
Definition value.h:141
T m_end
The end value.
Definition value.h:191
T m_value
The current value.
Definition value.h:194
Signal class used for defining a signal and dispatching events.
Definition signal.h:30
void invoke(Args... args)
Invoke all handlers with the specified args.
Definition signal.h:85
Manages a single value.
Definition value.h:25
Value(T value={}) noexcept
Definition value.h:39
Value< T > & operator=(T value)
Assign new value.
Definition value.h:51
Signal on_value_changed
Event signal.
Definition value.h:33
T value() const
Get the current value.
Definition value.h:58
bool value(T value)
Set value.
Definition value.h:66
T m_value
The current value.
Definition value.h:80
EGT framework namespace.
Definition animation.h:24