pub struct OnHover<W> { /* private fields */ }Expand description
Wraps a widget so a callback receives hover-state changes.
Implementations§
Source§impl<W: Widget> OnHover<W>
impl<W: Widget> OnHover<W>
Sourcepub fn probe(&mut self, response: &ButtonResponse)
pub fn probe(&mut self, response: &ButtonResponse)
Manually deliver a ButtonResponse; invokes the callback with
response.hovered.
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for OnHover<W>where
W: Freeze,
impl<W> !RefUnwindSafe for OnHover<W>
impl<W> !Send for OnHover<W>
impl<W> !Sync for OnHover<W>
impl<W> Unpin for OnHover<W>where
W: Unpin,
impl<W> UnsafeUnpin for OnHover<W>where
W: UnsafeUnpin,
impl<W> !UnwindSafe for OnHover<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