pub struct MouseButtons(/* private fields */);Expand description
A collection of mouse buttons.
Implementations§
Source§impl MouseButtons
impl MouseButtons
Sourcepub fn test(&self, button: MouseButton) -> bool
pub fn test(&self, button: MouseButton) -> bool
Test if the given mouse button is active.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MouseButtons
impl RefUnwindSafe for MouseButtons
impl Send for MouseButtons
impl Sync for MouseButtons
impl Unpin for MouseButtons
impl UnwindSafe for MouseButtons
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