Skip to main content

Module ui_graph

Module ui_graph 

Expand description

Versioned, serializable UI object graphs compiled into ordinary widgets.

The graph is a source format, not a second rendering system. UiNode variants build the same crate::widget::Widget implementations an app constructs in Rust, so accessibility, focus, model bindings, actions, themes, inspection, and headless tests keep one implementation.

Structs§

LiveUi
A retained host whose child is reconciled after a validated graph edit.
UiBuildContext
Process-local services available while compiling a serialized graph.
UiComponentRequest
Inputs passed to one app-owned serialized-graph component factory.
UiDocument
UiGraphEditor
A native, accessible object-graph editor with a live production-widget preview. It is also the root component used by the standalone UI builder.
UiGraphHandle
UiValues
A graph’s text and checked values, by each control’s value_path, and which buttons were clicked, by each button’s on_click_path.

Enums§

UiButtonRole
UiGraphEdit
One validated edit to a serialized UI object graph.
UiGraphError
UiNavigation
Process-local navigation requested by a button.
UiNode
UiTextRole
UiTextSource

Constants§

LIVE_GRAPH_DIR_ENV
Directory of live *.json screen graphs. When set, graph apps load and hot-reload screens from disk instead of the embed baked by include_str!.
LIVE_GRAPH_OPERATION
Operation type for live graph mutations published by LiveUi.
UI_GRAPH_VERSION

Traits§

UiDocumentExt
Compile a validated serialized graph into ordinary Tilo widgets.

Functions§

parse_ui_graph_edits
Parse a non-empty JSON array of tagged graph edits.