Skip to main content

DrawFn

Type Alias DrawFn 

Source
pub type DrawFn = Rc<dyn Fn(Rect, &mut Scene)>;
Expand description

Custom drawing callback: receives the element’s absolute frame in logical pixels.

Aliased Type§

pub struct DrawFn { /* private fields */ }