Struct orbclient::event::ScrollEvent
source · pub struct ScrollEvent {
pub x: i32,
pub y: i32,
}
Expand description
A event for scrolling the mouse
Fields§
§x: i32
The x distance of the scroll
y: i32
The y distance of the scroll
Implementations§
source§impl 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§
source§impl Clone for ScrollEvent
impl Clone for ScrollEvent
source§fn clone(&self) -> ScrollEvent
fn clone(&self) -> ScrollEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl 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§
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