Template Struct Value¶
Defined in File dimensions.h
Struct Documentation¶
-
template<typename T, typename Tag>
struct Value¶ Wraps a geometry value and prevents it from being accidentally used for invalid operations (such as setting a width to a height or adding two x positions together). Of course, explicit casts are possible to get around these restrictions (see the as_*() functions).
Public Functions
-
template<typename Q = T>
inline constexpr std::enable_if<std::is_integral<Q>::value, int>::type as_int() const¶
-
template<typename Q = T>
inline constexpr std::enable_if<std::is_integral<Q>::value, uint32_t>::type as_uint32_t() const¶
-
inline constexpr Value() noexcept¶
-
template<typename Q = T>