14#include <egt/detail/meta.h>
42 constexpr Ratio(T value,
int ratio) noexcept
52 constexpr operator T()
const
54 return static_cast<double>(
m_value) *
55 (
static_cast<double>(
m_ratio) / 100.);
69template <
class T, std::
size_t N>
70constexpr std::size_t
size(
const T(&)[N])
noexcept
constexpr std::size_t size(const T(&)[N]) noexcept
Return the size of an array (c++17's std::size()).
Definition utils.h:70
EGT_API std::string egt_version()
Get the version of the EGT library.
EGT_API std::string egt_git_version()
Get the git version of the EGT library.
EGT framework namespace.
Definition animation.h:24
Creates and stores a simple ratio value.
Definition utils.h:37
int m_ratio
Ratio.
Definition utils.h:62
constexpr Ratio(T value, int ratio) noexcept
Definition utils.h:42
T m_value
Value.
Definition utils.h:60