template<typename T>
GGUI::GGShows class

The first argument of a value widget: what it shows.

Constructors, destructors, conversion operators

GGShows(T value)
A value; the widget's edits change nothing unless the second argument does.
GGShows(const GGBinding& binding)
A binding: shows the value as it changes.
GGShows(const Editable<T>& editable)
An Editable: shows its binding, and its own writes take edits.
template<typename TState>
GGShows(const TState& state)
The widget writes the state; setting it re-runs the state's component.

Public functions

auto IsBound() const -> bool
Whether it shows a binding.
auto GetBinding() const -> const GGBinding&
The binding it shows.
auto GetPlain() const -> T
The value it shows, when not bound.
auto WritesItself() const -> bool
Whether it takes edits itself (a ui.State or an Editable).
auto GetWrites() const -> const GGEdits<T>&
What its own writes do.