Expand description
Host-independent retained scene engine for Whisker
Scene owns logical nodes and their current presentation state. Mutations
update that retained state and append to a coalescing change journal. At a
frame boundary the scene prepares either a complete snapshot or an
incremental whisker_protocol::FramePacket, then advances its accepted revision only after
the renderer confirms the complete transaction.
SurfaceEngine pairs that scene with a retained Taffy layout tree. It
keeps structural mutations synchronized, skips clean layout passes, and
journals only geometry that changed from the previous snapshot.
RecordingRenderer is the reference Rust-only consumer. Together with
whisker-protocol it lets tree, revision, recovery, and incremental-update
behavior run without Android, UIKit, DOM, FFI, or WASM.
Re-exports§
pub use whisker_layout;pub use whisker_protocol;pub use whisker_style;
Structs§
- Inline
Attachment Input - An inline subtree whose dimensions are resolved by the layout adapter.
- Layout
Options - Limit for synchronous Host batches attempted by one layout drive.
- Layout
Update - Result of requesting one layout pass.
- Lowered
Paint - Complete common presentation values derived from one computed node style.
- Lowered
Plain Text - Measurement and presentation values produced from one plain-text input.
- Measurement
Apply - Summary of applying immediate Host measurement responses.
- Plain
Text Input - Plain UTF-8 text and element inputs not supplied by computed style.
- Recorded
Frame - One attempted presentation and its recorded result.
- Recording
Renderer - Rust-only frame receiver backed by
SceneProjection. - Resolved
Text Run - One logical inline Text with fully resolved style.
- Scene
- Host-independent retained scene for one surface.
- Scene
Node - A retained logical node owned by a
Scene. - Surface
Engine - Host-independent rendering pipeline for one Whisker surface.
Enums§
- Deferred
Measurement Apply - Result of applying one deferred Host measurement event.
- Layout
Error - Failure while driving Taffy through the Rust-to-Host measurement boundary.
- Layout
Progress - State reached by one Host-backed layout attempt.
- Measurement
Error - Failure while validating or resolving intrinsic measurement.
- Scene
Error - A rejected scene mutation or frame-lifecycle transition.
- Surface
Error - Failure while coordinating retained layout and scene state.
- Surface
Present Error - Failure while presenting one prepared transaction to a Host.
Traits§
- Frame
Sink - Semantic frame receiver used by a
Scene. - Measurement
Provider - Host capability required to resolve one batch of intrinsic measurements.
Functions§
- lower_
color - Lowers a renderer-independent computed color into the paint protocol.
- lower_
paint - Lowers renderer-independent computed style into protocol-owned values.
- lower_
plain_ text - Lowers computed inherited text style into the shared Host measurement model.
- lower_
rich_ text - Lowers a paragraph while keeping metric and paint-only changes separate.
- lower_
text_ style - Lowers inherited text values for a native text-capable element without creating plain-text content or a measurement registration.
- lower_
transform - Resolves a computed transform against one node’s border-box size.