pub struct Mouse<'a> { /* private fields */ }Implementations§
Source§impl<'a> Mouse<'a>
impl<'a> Mouse<'a>
pub const fn new(device: &'a mut Device) -> Self
pub fn click(&mut self, button: MouseButton, millis: u64)
pub fn move_absolute(&mut self, button: MouseButton, x: i8, y: i8)
pub fn move_relative(&mut self, button: MouseButton, x: i8, y: i8)
pub fn press(&mut self, button: MouseButton)
pub fn release(&mut self)
pub fn wheel(&mut self, button: MouseButton, wheel: i8)
Auto Trait Implementations§
impl<'a> Freeze for Mouse<'a>
impl<'a> RefUnwindSafe for Mouse<'a>
impl<'a> !Send for Mouse<'a>
impl<'a> !Sync for Mouse<'a>
impl<'a> Unpin for Mouse<'a>
impl<'a> !UnwindSafe for Mouse<'a>
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