Store generic mouse regions on window that contain their event type id
This commit is contained in:
parent
812d3f6af6
commit
b95b2af3e0
8 changed files with 130 additions and 57 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue