TnxWidgetBase class

The non-template part of every widget class.

Derived classes

template<typename T>
class TnxWidget
The base of a widget class: class PlayerHud : public TnxWidget<PlayerHud>. T lists what its assets see with TNX_WIDGET, and is registered with TNX_REGISTER_WIDGET.

Constructors, destructors, conversion operators

TnxWidgetBase(const TnxWidgetBase&) deleted
TnxWidgetBase(const TnxWidgets::ClassType* type) protected explicit
A widget of class type (null: its class isn't registered).
~TnxWidgetBase() protected defaulted

Public functions

auto operator=(const TnxWidgetBase&) -> TnxWidgetBase& deleted
auto GetClass() const -> const TnxWidgets::ClassType*
Its registered class; null if its class wasn't registered (TNX_REGISTER_WIDGET).
auto Inputs() const -> GGUI::GGWidgetInputs
What its asset is given now: its contexts and inputs.
void GiveTo(GGUI::UseProps& use) const
Set use's inputs and widget members' inputs to what it gives its asset now.
auto Find(std::span<const TnxName> path) -> TnxWidgetBase*
Its widget member down path (GGWidgetAction::MemberPath); itself for none, null if it has no such member.