Expand description
§noonoo-shell
The document host: several documents in one window, with input routed to
the right one and their paint output composited (see docs/SHELL.md).
Where the engine it replaces had one root document plus single-slot overlays — so pages became blitted bitmaps with no scroll/hover/focus — this host treats every document as first-class: each has its own DOM, styles, layout, and paint output, placed at a rectangle in the window. A pointer or key event is routed to the owning document at the right coordinates, and the composition seam returns one command stream per layer.
Interactive state is host state: Host::hover tracks the hovered node,
Host::press/Host::release the pressed one, and Host::set_focus
keyboard focus. Host::layout feeds that state into the cascade, so
:hover/:active/:focus style the elements they name.
The host model is dependency-free and testable headless. The actual window
and GPU surface (window/gpu) are a borrowed backend behind features. The
accessibility tree is owned (a11y, on by default): Host::a11y
composes each layer’s tree under one window root, with bounds offset and ids
renumbered, so a platform bridge (see integrations/noonoo-accesskit) can
pass it straight to AT-SPI/UiKit/WinRT.
Structs§
- Anchor
- A sub-document’s placement: anchored to a host node in a parent layer.
- Host
- A window hosting several documents.
- Layer
- One document placed in the window.
Enums§
Constants§
- VERSION
- The version of this crate, taken from the workspace.
Functions§
- navigation_
allowed - Whether
target_schememay be navigated to fromorigin.