Struct orbclient::event::MouseRelativeEvent
source · pub struct MouseRelativeEvent {
pub dx: i32,
pub dy: i32,
}
Expand description
A event related to the mouse (relative position)
Fields§
§dx: i32
The x coordinate of the mouse
dy: i32
The y coordinate of the mouse
Implementations§
source§impl MouseRelativeEvent
impl MouseRelativeEvent
sourcepub fn from_event(event: Event) -> MouseRelativeEvent
pub fn from_event(event: Event) -> MouseRelativeEvent
Convert an Event
to a MouseRelativeEvent
Trait Implementations§
source§impl Clone for MouseRelativeEvent
impl Clone for MouseRelativeEvent
source§fn clone(&self) -> MouseRelativeEvent
fn clone(&self) -> MouseRelativeEvent
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