template<typename T>
TnxInput class

A value a widget class gives its asset: a number (float, int32_t, bool), shown as it changes with nothing built again; or text (a string ID) or a colour, which builds the widget again when set to something else.

Set from any thread.

Public static functions

static auto Type() -> GGUI::GGInputType constexpr
What its asset declares it as.

Constructors, destructors, conversion operators

TnxInput() defaulted
Zero, false, empty text, or a clear colour.
TnxInput(T value)
value: TnxInput<int32_t> Level{ 3 };.

Public functions

void Set(const T& value)
Give the asset value.
auto operator=(const T& value) -> TnxInput&
The same as Set: hud.Widget<PlayerHud>()->Gold = 1200.0f.
auto Given() const -> GGUI::GGInputValue
As an asset is given it: a number read as it changes, or the value now.