GGValue struct
#include <GGUI/Public/UIValueService.h>
A typed value handed to code outside the UI (FieldSource::
Public static functions
Public functions
- auto Kind() const -> ValueKind
- Its type; Float if it has none.
-
template<ValueType T>auto As() const -> T
Tmust match the stored type (check with Is<T>()).-
template<ValueType T>auto Is() const -> bool
- Whether it holds a
T. - auto AsDouble() const -> double
- Lossy. For sources that keep their numbers as float or double.