pub type IconPainter = Box<dyn FnOnce(&mut Ui, f32, &Response)>;
A function that paints an icon indicating if the region is open or not
struct IconPainter(/* private fields */);