noonoo-engine 0.21.0

Noonoo's orchestration: a parsed, styled, laid-out engine over a DOM document.
Documentation

noonoo-engine

Orchestration: a parsed, styled and laid-out engine over a DOM document. Linked stylesheets and @import load through the host's noonoo_net::Loader, set with Engine::set_loader.

Where it sits

Depends on these noonoo crates: noonoo-css, noonoo-dom, noonoo-geometry, noonoo-html, noonoo-layout, noonoo-net, noonoo-paint, noonoo-style. Used by: noonoo-shell, and re-exported by the noonoo facade.

Usage

use noonoo_engine::Engine;
use noonoo_geometry::Size;
use noonoo_layout::MetricShaper;

let engine = Engine::from_html("<style>div { height: 20px; background-color: red }</style><div></div>");
let commands = engine.paint(Size::new(320.0, 200.0), &MetricShaper);
assert!(!commands.is_empty());

Features

  • std: enabled by default; currently gates no code

Default features: std.

License

MIT OR Apache-2.0. Part of noonoo.