pub struct OnMouseEvent<W: ?Sized = dyn Widget> { /* private fields */ }Expand description
Hookable: Triggers on every MouseEvent.
§Arguments
- The
Handle<W>under the mouse. - The
MouseEventitself.
Trait Implementations§
Source§impl<W: 'static + ?Sized> Hookable for OnMouseEvent<W>
impl<W: 'static + ?Sized> Hookable for OnMouseEvent<W>
Source§impl<W: 'static + ?Sized> PartialEq<MouseEvent<'_, W>> for OnMouseEvent<W>
impl<W: 'static + ?Sized> PartialEq<MouseEvent<'_, W>> for OnMouseEvent<W>
Source§impl<W: 'static + ?Sized> PartialEq<MouseEventKind> for OnMouseEvent<W>
impl<W: 'static + ?Sized> PartialEq<MouseEventKind> for OnMouseEvent<W>
Auto Trait Implementations§
impl<W> Freeze for OnMouseEvent<W>where
W: ?Sized,
impl<W = dyn Widget> !RefUnwindSafe for OnMouseEvent<W>
impl<W> Send for OnMouseEvent<W>where
W: ?Sized,
impl<W> Sync for OnMouseEvent<W>where
W: ?Sized,
impl<W> Unpin for OnMouseEvent<W>where
W: ?Sized,
impl<W> UnsafeUnpin for OnMouseEvent<W>where
W: ?Sized,
impl<W = dyn Widget> !UnwindSafe for OnMouseEvent<W>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more