pub struct MouseState { /* private fields */ }
Expand description
A snapshot of the mouse flags, x delta and y delta.
Implementations§
Source§impl MouseState
impl MouseState
Sourcepub const fn new() -> MouseState
pub const fn new() -> MouseState
Returns a new MouseState
.
Returns true if the left mouse button is currently down.
Returns true if the left mouse button is currently up.
Returns true if the right mouse button is currently down.
Returns true if the right mouse button is currently up.
Trait Implementations§
Source§impl Clone for MouseState
impl Clone for MouseState
Source§fn clone(&self) -> MouseState
fn clone(&self) -> MouseState
Returns a duplicate 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 MouseState
impl Debug for MouseState
Source§impl Default for MouseState
impl Default for MouseState
Source§fn default() -> MouseState
fn default() -> MouseState
Returns the “default value” for a type. Read more
impl Copy for MouseState
Auto Trait Implementations§
impl Freeze for MouseState
impl RefUnwindSafe for MouseState
impl Send for MouseState
impl Sync for MouseState
impl Unpin for MouseState
impl UnwindSafe for MouseState
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