slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
17.61k stars 605 forks source link

PopupWindow: property for controlling mouse input events #6335

Open rscarson opened 1 month ago

rscarson commented 1 month ago

For context, see this discussion

If PopupWindow could provide an enabled property, which if false would prevent it from eating mouse inputs, it would widen the usecases for it

Alternatively, it could prevent eating mouse inputs outside it's geometry

ogoffart commented 1 month ago

I think this is a valid feature. I just don't think enabled is the right name for that property. Maybe mouse-pass-through? Or an mouse-behavior enum?

rscarson commented 1 month ago

I think this is a valid feature. I just don't think enabled is the right name for that property. Maybe mouse-pass-through? Or an mouse-behavior enum?

An enum would be cool Consume, pass through, one that does both?