pub struct HoverController { /* private fields */ }Expand description
Reports the pointer entering and leaving the Widget.
Implementations§
Trait Implementations§
Source§impl Controller for HoverController
impl Controller for HoverController
Source§fn handle(
&mut self,
widget: WidgetId,
event: &Event,
out: &mut Vec<ControllerEvent>,
)
fn handle( &mut self, widget: WidgetId, event: &Event, out: &mut Vec<ControllerEvent>, )
Examines one event and reports any result.
§Arguments
widget- The ID of the owningWidget.event- The event theWidgetreceived.out- Where results are pushed.
Source§fn event_mask(&self) -> EventMask
fn event_mask(&self) -> EventMask
Returns the event classes this controller needs.
§Returns
The mask added to the Widget’s event mask.
Auto Trait Implementations§
impl Freeze for HoverController
impl RefUnwindSafe for HoverController
impl Send for HoverController
impl Sync for HoverController
impl Unpin for HoverController
impl UnsafeUnpin for HoverController
impl UnwindSafe for HoverController
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