Skip to content

kithara ui draw

Pavel Litvinenko edited this page Sep 26, 2026 · 1 revision

kithara-ui-draw

Contract reviewed from PR #445, source revision e07c17b42. This records that branch contract, not merged release status or new runtime validation. API and usage · All crates.

Ownership

This crate owns the toolkit-neutral picture: points and affine transforms, and a draw list of fills, strokes, glyph runs, and images that any backend replays. It owns the list's pooled buffers and their byte budget, the capabilities a backend declares, where ink lands after a transform, and reading an SVG into an outline. Glyph runs come from kithara-ui-shaping; iced conversions sit behind the iced feature.

Boundaries

  • The rasterisers themselves live in kithara-ui backends/, because each one is tied to a host's toolkit and version pins.
  • DrawBuffers is owned by whoever holds it across frames. In kithara-ui that is the host, through UiConfig; see that page for why a per-compile pool is wrong.

Clone this wiki locally