Struct orbclient::event::ScrollEvent
[−]
[src]
pub struct ScrollEvent {
pub x: i32,
pub y: i32,
}A event for scrolling the mouse
Fields
x: i32
The x distance of the scroll
y: i32
The y distance of the scroll
Methods
impl ScrollEvent[src]
fn to_event(&self) -> Event[src]
Convert to an Event
fn from_event(event: Event) -> ScrollEvent[src]
Convert an Event to a ScrollEvent
Trait Implementations
impl Copy for ScrollEvent[src]
impl Clone for ScrollEvent[src]
fn clone(&self) -> ScrollEvent[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more