Expand description
Renderer crate with optional backends. No features enabled => stub, compiles fast.
Re-exports§
pub use hmr::DEFAULT_HMR_PORT;pub use hmr::HmrMessage;pub use hmr::hmr_config;pub use hmr::run_hmr_client;pub use viewport::LogicalSize;pub use viewport::PhysicalSize;pub use viewport::Viewport;pub use events::Runtime as EventRuntime;
Modules§
- event_
binding - Event binding and handler system for Velox components
- events
- hmr
- HMR (Hot Module Replacement) support for the Velox dev server.
- input_
metrics - One shared content-box geometry for
<input>. - text
- Text rendering and typography support for Velox
- viewport
- Viewport — single source of truth for physical/logical size and scale. Shared by SkiaSurface, SoftbufferPresenter and the window loop (R-H1/R-H3).
Structs§
- A11y
Node - A11y
Tree - Lifecycle
Cleanup Guard - Lifecycle wiring helper — ensures
on_unmounted/before_destroyhooks fire even if the event loop exits viaDroprather thanCloseRequested. - Render
Tree - In-memory representation of a mounted tree (stubbed for now).
- Stub
Renderer
Constants§
Traits§
- HmrRenderer
- Renderer
- Minimal renderer trait. Backends implement this to expose a consistent API.
- Velox
Renderer - High-level renderer lifecycle trait. Backends implement this to expose
a consistent
new -> mount -> hot_updateworkflow that returnsResultinstead of panicking on failure.
Functions§
- backend_
name - build_
a11y_ tree - Build the accessibility tree for
vnodelaid out atwidthxheight. - ensure_
mounted - find_
node_ at_ path - Return the VNode at a child source-index path, if it exists.
- init
- Stub init used when no backend features are enabled.
- new_
selected_ renderer - Construct the feature-selected renderer.
- style_
vnode_ with_ hover - Apply the renderer-wide UA < author < inline cascade before layout or paint.