Expand description
Rust-side mount: a widget tree, its input events and its frame schedule, with no script on the page (aprender#6893, aprender#6892).
Mounted is the part that decides: it takes events, tracks whether a repaint is owed
and produces the draw commands of one frame. It touches no browser API, so it is tested
natively. The wasm32 shell that feeds it from DOM listeners and
requestAnimationFrame is browser::entry.
Contract: contracts/present-mount-frame-v1.yaml.
Structs§
- Mounted
- A widget tree mounted on a surface of a known size.
Enums§
- Frame
- The outcome of one frame tick.
- Frame
Action - What the frame loop does at one tick.
Functions§
- counter_
tree - The tree of the built-in counter page: a title, the count and one “+” button.
- schedule
- The whole scheduling decision: repaint while something is dirty or an animation runs, otherwise stop.