GGUI::WidgetDef struct

The core's view of a widget kind: state size, construct/destruct, and one function pointer per hook the struct has. Generated by WidgetDefOf<T>; never written by hand.

Public variables

std::string_view Name
the struct's Name
size_t Size
sizeof the struct
size_t Alignment
void(* Construct
Make a default state at at.
void(* Destruct
Destroy the state at state.
void(* Woken
The Woken hook; null if it hasn't one. The other hooks below likewise.
void(* Valued
hook
void(* Language
hook
void(* Laid
hook
void(* Focus
hook
bool(* Text
hook
bool bShowsFocus
shows focus however it was gained (text widgets)
bool bKeysFirst
its Key hook runs before commands and navigation
void(* Sized
hook
bool(* Key
hook
bool(* Wheel
hook
void(* Publish
hook
bool(* ScrollBar
hook
void(* ScrollBarTo
hook

Variable documentation

size_t GGUI::WidgetDef::Alignment

alignof the struct