Expand description
Layer 3: vector scene / display list, renderer-agnostic scene builder.
Scene/SceneBuilder/Command are the stable seam between widgets (layer
1+2) and the GPU backend (layer 4, frust-render). Only kurbo
(geometry) and peniko (brushes/fonts) appear in this crate’s public API —
vello/wgpu types are forbidden here so the render backend can be swapped
later.
Structs§
- Corner
Radii - Per-corner radii for a rounded rectangle, in the pre-transform coordinate space.
- Dash
Pattern - A stroke’s dash pattern: an
onrun, anoffgap, and aphaseoffset into that repeating cycle — all lengths in the pre-transform coordinate space. - Font
Handle - Opaque wrapper around a loaded font resource (blob + collection index).
- Glyph
- A single positioned glyph within a
GlyphRun. - Glyph
Run - A run of glyphs sharing a font, size, brush, and transform.
- Scene
- Renderer-agnostic, immediate-mode display list.
- Scene
Builder - Records paint commands into a
Scene, maintaining a transform stack. - Shader
Program - A runtime fragment-shader program (WGSL source) — the Frust analog of
Flutter’s
FragmentProgram.
Enums§
- Command
- A single paint operation recorded into a
Scene. - Path
Style - How a
Command::Pathis rendered: filled or stroked.
Functions§
- arc_
path - Builds a
kurbo::BezPathtracing a circular arc centered atcenterwith the givenradius, fromstart_anglesweepingsweep_angle(both in radians, matchingkurbo::Arc’s convention: 0 = positive x-axis, positive = clockwise in a y-down coordinate space).