template<typename T>
GGUI::GGNumberTraits struct

The traits of a number type.

Public static variables

static GGPropKind Kind constexpr

Public static functions

static auto Choices() -> std::span<const std::string_view>
None: a number isn't a choice.
static auto Read(const JsonValue& value, T& out, std::string& why) -> bool
A number from the file. False, with why, if it isn't one.
static auto Write(const T& value) -> JsonValue
value as the file writes it.

Variable documentation

template<typename T>
static GGPropKind GGUI::GGNumberTraits<T>::Kind constexpr

Number or Integer