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 more