Skip to main content

Module async_image

Module async_image 

Source
Expand description

Images decoded from reactive bytes, with a placeholder and optional clipping. Uses the core decoder and canvas; no toolkit-specific image pipeline or HTTP dependency.

Structs§

AsyncImage
A growing image surface. Empty and invalid sources show the placeholder.

Enums§

ContentMode
How an image is scaled to fill its frame (§18.3). Maps to each toolkit’s native scaling.

Traits§

AsyncImageBuilder
Builder methods of AsyncImage, reachable through a Decorated (docs/api-style.md “Typed builders and erasure”): generic modifiers and typed ones chain in any order.

Functions§

async_image
Decode each source asynchronously. A replacement cancels the previous decode; disposal cancels the pending task. A failed replacement clears the previous picture.