iced::widget::canvas

Type Alias Cache

Source
pub type Cache<Renderer = Renderer<Renderer, Renderer>> = Cache<Renderer>;
Available on crate feature canvas only.
Expand description

A simple cache that stores generated Geometry to avoid recomputation.

A Cache will not redraw its geometry unless the dimensions of its layer change or it is explicitly cleared.

Aliased Typeยง

struct Cache<Renderer = Renderer<Renderer, Renderer>> { /* private fields */ }