Skip to main content

Crate velox_renderer

Crate velox_renderer 

Source
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§

A11yNode
A11yTree
LifecycleCleanupGuard
Lifecycle wiring helper — ensures on_unmounted / before_destroy hooks fire even if the event loop exits via Drop rather than CloseRequested.
RenderTree
In-memory representation of a mounted tree (stubbed for now).
StubRenderer

Constants§

BACKEND

Traits§

HmrRenderer
Renderer
Minimal renderer trait. Backends implement this to expose a consistent API.
VeloxRenderer
High-level renderer lifecycle trait. Backends implement this to expose a consistent new -> mount -> hot_update workflow that returns Result instead of panicking on failure.

Functions§

backend_name
build_a11y_tree
Build the accessibility tree for vnode laid out at width x height.
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.

Type Aliases§

SelectedRenderer