GGUI::GGWidgetField struct

One property a widget type takes: a reflected field of its props, or an argument of its call (a Label's text, a Progress's value).

Public variables

std::string Name
as in code ("bWrap"), or the argument's name
std::string Key
as the file writes it ("wrap")
std::string Display
as the designer shows it ("Wrap")
GGPropKind Kind
how it is read, written, and edited
GGPropGroup Group
where Details shows it
std::vector<std::string_view> Choices
Choice: the words, by value.
bool bFormula
may be a formula ("=..."), and so follow game data
JsonValue Default
what it is when the file doesn't say
size_t Offset
bool(* Read
A reflected field: read value into field; false, with why, if it can't be. Null for an argument.
JsonValue(* Write
A reflected field: field as the file writes it. Null for an argument.

Variable documentation

size_t GGUI::GGWidgetField::Offset

a reflected field: where it is in its props struct