pub type PaintFn = Arc<dyn Fn(&mut Painter, Rect, &Theme) + Send + Sync>;
Custom painting is clipped to this node’s rectangle. It never receives window access.
pub struct PaintFn { /* private fields */ }