Expand description
Lumen UI framework core crate.
- Owns the tick loop,
commandqueue, ECS components, and the two ECS worlds (main + render). Seerender_worldfor the cross-world flow. - Backend roles are traits in
traits; concrete backends implement them and register systems viaapp::Plugin. - Hierarchy uses
bevy_ecs::hierarchy::ChildOfandbevy_ecs::hierarchy::Children, re-exported fromprelude.
Modules§
- app
- App builder and
Plugintrait. Wraps [bevy_ecs::World] andScheduledirectly without depending onbevy_app. - app_
paths - Process-global app location: the directory an app was loaded from, and the per-user directory it keeps saved data in.
- backends
- The registry every backend kind shares.
- command
- Bounded command queue for off-main-thread mutations of ECS state.
- components
- ECS component primitives.
- i18n
- Process-wide translation and formatting hooks - the surfaces a script host reaches an app’s locale through.
- input
- Pointer, keyboard, drag, IME, and file-drop event types plus shared input resources.
- introspect
- Typed, whitelisted component-introspection registry for the dynamic
DOM
n.components()/n.component("LayoutBox")reads (design 4.7). - layout_
backend - The layout engines a binary carries, how a launch installs one, and the system set that marks where layout is solved.
- native
- Native paint seam - the way a plugin draws its own pixels inside the retained scene.
- nav
- File-based-pages navigation primitive - the ONE surface every embedding reaches through.
- net_
capture - Process-wide, opt-in HTTP capture sink for dev tooling.
- node
- Node handles and the per-tick DOM index for the dynamic query API.
- node_ir
- Retained Node IR - typed scene-graph tree produced from the flat
Extracted*bag. - output
- Saying things without staking the process on being heard.
- palette
- Design-token / named-color
Palette. - plugin_
events - Cross-thread event bus for plugins, modules and add-ons.
- prelude
- Crate prelude re-exporting the common types. Glob-import with
use lumen_core::prelude::*;. - property_
store - Typed reactive property store with notify-on-write semantics.
- render_
backend - The render backends a binary carries, how a launch picks one, and the render-world system that drives a renderer drawing offscreen.
- render_
world - Render world definitions and the extract pipeline.
- request
- The request a document is being produced for.
- signals
- Reactive named-value store backing
bind-text="..."markup attributes and<for each="...">iteration. - style_
overrides - The values runtime systems hold on an element over what its styles say.
- task
- The async seam:
Spawnfor running work off the main thread,Timerfor waiting without blocking it, and the two service resources that carry the selected backend through the world. - text_
events - W3.2: text-editing message bus.
- text_
model - W3.1: rope-backed text model components.
- tick
- Main-world tick stages and the
Tickresource. - time
- Clock types for the tick loop, animation primitives, and script timers.
- traits
- The backend roles, plus the
Bindabletrait declaring a component as a property-bus participant. - window
- Backend-neutral description of the app’s window and its native menu bar.
- window_
backend - The window backends a binary carries, and the window-free state every window backend shares with the app.
- window_
state - Process-global window-state mirror for the
windowscript namespace.