GGWidgetType struct
#include <GGUI/Public/UIWidgetRegistry.h>
A type of element: a built-in one, or a code widget.
Public functions
- auto Find(std::string_view key) const -> const GGWidgetField*
- Its property with this key, its own or one every element takes; null if none.
Public variables
- std::string Name
- as the file writes it ("Row", "Gauge")
- std::string Group
- which palette group shows it: Layout, Content, Controls, Choosing, Code; empty: none
- bool bHolds
- takes children
- bool bBuiltIn
- one of GG-UI's own, not a code widget
- std::vector<GGWidgetField> Fields
- its own, after the ones every element takes
- size_t PropsSize
- void(* Construct
- A code widget: make a default props struct at
at. - void(* Destroy
- A code widget: destroy the props struct at
at. - void(* Build
- A code widget: build it from
props.
Variable documentation
size_t GGUI:: GGWidgetType:: PropsSize
a code widget: the size of its props struct