Type Alias ContentDraw
pub type ContentDraw = Box<dyn FnMut(&mut Scene, Affine, &mut TextRenderer, &Theme, Rect)>;Expand description
A draw callback supplied to DocumentViewport::from_draw. It receives
the content→screen Affine already composed with the host transform, so
the closure paints in content space and the viewport handles the
zoom + pan. The viewport rect is supplied for clipping decisions.
Aliased Type§
pub struct ContentDraw(/* private fields */);