pub struct PointerButtons(/* private fields */);Expand description
A set of pointer buttons that are pressed together.
Implementations§
Source§impl PointerButtons
impl PointerButtons
Sourcepub fn with(self, button: PointerButton) -> Self
pub fn with(self, button: PointerButton) -> Self
Returns the set with button added.
Sourcepub fn insert(&mut self, button: PointerButton)
pub fn insert(&mut self, button: PointerButton)
Adds button to the set.
Sourcepub fn remove(&mut self, button: PointerButton)
pub fn remove(&mut self, button: PointerButton)
Removes button from the set.
Sourcepub fn contains(&self, button: PointerButton) -> bool
pub fn contains(&self, button: PointerButton) -> bool
Whether button is in the set.
Trait Implementations§
Source§impl Clone for PointerButtons
impl Clone for PointerButtons
impl Copy for PointerButtons
Source§impl Debug for PointerButtons
impl Debug for PointerButtons
Source§impl Default for PointerButtons
impl Default for PointerButtons
impl Eq for PointerButtons
Source§impl PartialEq for PointerButtons
impl PartialEq for PointerButtons
impl StructuralPartialEq for PointerButtons
Auto Trait Implementations§
impl Freeze for PointerButtons
impl RefUnwindSafe for PointerButtons
impl Send for PointerButtons
impl Sync for PointerButtons
impl Unpin for PointerButtons
impl UnsafeUnpin for PointerButtons
impl UnwindSafe for PointerButtons
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