rux-layout 0.6.0

Rux layout: a styled node tree resolved to absolute paint rects via taffy. Internal to Rux; the supported entry point is the ruxlang crate.
Documentation
  • Coverage
  • 39.83%
    139 out of 349 items documented0 out of 59 items with examples
  • Size
  • Source code size: 103.61 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.68 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Aine-dickson/rux
    12 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Aine-dickson

rux-layout

Rux layout: a styled node tree fed through taffy to produce absolute paint rects.

Boxes come straight from taffy's flexbox and grid implementation. Text leaves are sized through a measure callback the caller supplies, which is what keeps this crate free of any font dependency: the shell owns the text engine, and layout only needs an answer about how big a string comes out. The output is a flat list of paint items in absolute coordinates, ready for rux-paint.

Internal to Rux

This is one crate of the Rux workspace. It is published so the toolchain builds from crates.io, not as a library to depend on: it makes no stability promise of its own and its API moves whenever the runtime needs it to. The supported entry point is ruxlang.

cargo install ruxlang     # installs a `rux` command

rux run app.rux

ruxlang.dev · learn · reference · try it in a browser

Licence

Dual licensed under Apache-2.0 or MIT, at your option.