Store generic mouse regions on window that contain their event type id

This commit is contained in:
Nathan Sobo 2023-08-17 08:37:55 -06:00
parent 812d3f6af6
commit b95b2af3e0
8 changed files with 130 additions and 57 deletions

View file

@ -711,6 +711,7 @@ impl MouseRegion {
pub struct InteractiveRegion {
pub order: u32,
pub bounds: RectF,
pub outside_bounds: bool,
pub event_handler: Rc<dyn Fn(&mut dyn Any, &dyn Any, &mut WindowContext, usize)>,
pub event_type: TypeId,
pub view_id: usize,