RealmUI - Overview
RealmUI is the engine's declarative UI runtime. The host sends commands and ops (CmdUi*) and the core:
- keeps document and theme state;
- converts input (pointer/keyboard) to
egui::Event; - renders UI meshes in the UI pass;
- sends UI/system events back to the host.
Semantic Structure
UiTheme:- reusable resource (visual tokens + fonts).
UiDocument:- UI node tree bound to a
realmId.
- UI node tree bound to a
UiNode:- declarative unit (
kind + props) applied byCmdUiApplyOps.
- declarative unit (
UiImage:- async image resource consumed by
Image/ImageButton.
- async image resource consumed by
Integration with Targets/Layers
UiImageSource::Target(targetId)enables sampling from an external target.UiNodeKind::WidgetRealmViewportrenders target output inside a UI node.TargetKind::RealmPlaneenables UI on a 3D plane with raycast/hit.
Reference
- Runtime:
RUNTIME.md - Widgets:
WIDGETS.md - Events:
EVENTS.md - Painter:
PAINTER.md - Limitations:
LIMITATIONS.md - Commands:
docs/cmds/cmd-ui-*.md
Documentation Vulfram Core