pub struct ScrollController;Expand description
Reports wheel and trackpad scrolling.
Scrolls bubble, so a scrolling container sees scrolls over its children too.
Implementations§
Trait Implementations§
Source§impl Controller for ScrollController
impl Controller for ScrollController
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(unused).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 ScrollController
impl RefUnwindSafe for ScrollController
impl Send for ScrollController
impl Sync for ScrollController
impl Unpin for ScrollController
impl UnsafeUnpin for ScrollController
impl UnwindSafe for ScrollController
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