Skip to main content

Crate noonoo_shell

Crate noonoo_shell 

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

LayerKind
A layer’s role.
Origin
A document’s trust context.

Constants§

VERSION
The version of this crate, taken from the workspace.

Functions§

navigation_allowed
Whether target_scheme may be navigated to from origin.