Struct orbclient::event::ScrollEvent
source · [−]Expand description
A event for scrolling the mouse
Fields
x: i32The x distance of the scroll
y: i32The y distance of the scroll
Implementations
sourceimpl ScrollEvent
impl ScrollEvent
sourcepub fn from_event(event: Event) -> ScrollEvent
pub fn from_event(event: Event) -> ScrollEvent
Convert an Event to a ScrollEvent
Trait Implementations
sourceimpl Clone for ScrollEvent
impl Clone for ScrollEvent
sourcefn clone(&self) -> ScrollEvent
fn clone(&self) -> ScrollEvent
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ScrollEvent
impl Debug for ScrollEvent
impl Copy for ScrollEvent
Auto Trait Implementations
impl RefUnwindSafe for ScrollEvent
impl Send for ScrollEvent
impl Sync for ScrollEvent
impl Unpin for ScrollEvent
impl UnwindSafe for ScrollEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more