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 moresource§impl Debug for MouseRelativeEvent
impl Debug for MouseRelativeEvent
impl Copy for MouseRelativeEvent
Auto Trait Implementations§
impl RefUnwindSafe for MouseRelativeEvent
impl Send for MouseRelativeEvent
impl Sync for MouseRelativeEvent
impl Unpin for MouseRelativeEvent
impl UnwindSafe for MouseRelativeEvent
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