GGUI::GGClassInfo struct

A widget class: the code behind a widget asset that names it ("class": "PlayerHud").

What the asset is given (its contexts and inputs) and what it can call ({ "call": "Buy" }) are the class's, declared in code. The host's classes are found through GGClassResolver.

Public types

struct Call
A method its assets' actions call.
struct Widget
Its members that are widgets of a class: each is what the element of its name, using an asset of that class, is given and calls.

Public functions

auto FindCall(TnxName name) const -> const Call*
Its method of that name; null if none.
auto FindWidget(TnxName name) const -> const Widget*
Its widget member of that name; null if none.

Public variables

TnxName Name
the class's name, as files write it
std::vector<GGContextInfo> Contexts
what its assets read
std::vector<GGInputInfo> Inputs
std::vector<Call> Calls
std::vector<Widget> Widgets

Variable documentation

std::vector<GGInputInfo> GGUI::GGClassInfo::Inputs

what its assets are given

std::vector<Call> GGUI::GGClassInfo::Calls

in declaration order

std::vector<Widget> GGUI::GGClassInfo::Widgets

in declaration order