UITypes.h file
Types used by the authoring API: element kinds, layout and element properties, and the small callable wrappers that carry content.
Event handlers are in UIEvents.h.
Namespaces
- namespace GGUI
- namespace GGUI::KeptBlocks
- KeptBlocks: pooled memory for things a document stores on an author's behalf (handler and component captures, ui.State values) when they don't fit inline.
Classes
- struct GGUI::GGInputDevice
- What the player is using: prompts show its keys or buttons.
- struct GGUI::GGColumns
- Grid columns: a count of equal columns (
.Columns = 8), or a size per column (.Columns = { GGSize::Fixed(120), GGSize::). Fit sizes a column to its widest cell.Grow() } - struct GGUI::AccessInfo
- Per-node accessibility data.
- struct GGUI::AccessProps
- ui.Accessible: overrides for the element being built.
- struct GGUI::GGTransform
- A group transform: an element and everything in it drawn scaled, then skewed, then turned, about a point, with nothing laid out again.
- struct GGUI::BoxProps
- Properties of a container: ui.Row, ui.Column, ui.Stack.
- struct GGUI::GridProps
- ui.Grid props. Children fill it row by row.
- struct GGUI::PlaceProps
- ui.Place props: an overlay on a box's content. Takes no space among its siblings. Drawn in build order like them, so one built after the content is in front; Layer overrides that.
- struct GGUI::TextProps
- Properties of ui.Label.
- struct GGUI::ButtonProps
- Properties of ui.Button.
- struct GGUI::GGPictureLook
- How an image or a progress bar is drawn beyond its basics. Kept with the node's image input and carried into the snapshot; the fields marked bindable follow GGProperty bindings.
- struct GGUI::ProgressProps
- Properties of ui.Progress.
- struct GGUI::ImageProps
- Image and viewport props.
- struct GGUI::EmbedProps
- ui.Embed: an area something else draws and takes the pointer in (another UI library, a native view). The document draws nothing there and publishes where it is (GGSnapshot::
Embeds). - struct GGUI::SwatchProps
- ui.Swatch: a box whose colour is data rather than style (a user-picked colour, a team colour). With bGradient it runs from the colour to To.
- struct GGUI::ColorProps
- ui.Color: a swatch that opens a colour picker.
- struct GGUI::LayoutInput
- Layout inputs stored per node (what BoxProps becomes).
- class GGUI::ChildrenRef
- ChildrenRef: container content built immediately.
- class GGUI::GGRevision
- GGRevision: a change counter the UI can watch.
- struct GGUI::KeptBlocks::SizeClass
- Blocks of one size.
- struct GGUI::KeptBlocks::Use
- What is in use (GetUse).
- struct GGUI::GGCaptured
- GGCaptured: out-of-line storage for a handler's or component function's captures.
- class GGUI::GGCapturedRef
- Ref-counted pointer to a GGCaptured.
- class GGUI::ComponentFn
- ComponentFn: the function a component re-runs.