Skip to main content

drawing_into_cache

Function drawing_into_cache 

pub fn drawing_into_cache<R>(transform: Affine, draw: impl FnOnce() -> R) -> R
Expand description

Record draw into a cache its caller then appends with transform (a container that draws its children at the identity into a retained scene): a scroller drawn inside learns where its content lands on screen (on_screen).