pub type PaintDispatch<'a> = dyn FnMut(PaintId, Rect, &mut Grid, &Arc<Theme>, (u16, u16)) + 'a;Expand description
Per-leaf paint callback: (paint_id, leaf_rect, grid, theme, terminal_size).
The renderer calls this for each resolved LayoutTree::Leaf.