Function freya::elements::events::onglobalmouseover
pub fn onglobalmouseover<E, T>(
_f: impl FnMut(Event<MouseData>) -> E + 'static
) -> Attributewhere
E: EventReturn<T>,
Expand description
The globalmouseover
event fires when the user moves the mouse anywhere in the app.
Event Data: MouseData
§Example
fn app() -> Element {
rsx!(
rect {
onglobalmouseover: |_| println!("Moving the mouse somewhere!")
}
rect {
width: "100",
height: "100",
background: "red",
onmousedown: |_| println!("Moving the mouse here!")
}
)
}