pub struct PointerButtons(/* private fields */);Expand description
A set of pointer buttons that are pressed together.
Implementations§
Source§impl PointerButtons
impl PointerButtons
Sourcepub const NONE: PointerButtons
pub const NONE: PointerButtons
The set with no button pressed.
Sourcepub fn new() -> PointerButtons
pub fn new() -> PointerButtons
Creates a set with no button pressed.
Sourcepub fn with(self, button: PointerButton) -> PointerButtons
pub fn with(self, button: PointerButton) -> PointerButtons
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
Source§fn clone(&self) -> PointerButtons
fn clone(&self) -> PointerButtons
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PointerButtons
Source§impl Debug for PointerButtons
impl Debug for PointerButtons
Source§impl Default for PointerButtons
impl Default for PointerButtons
Source§fn default() -> PointerButtons
fn default() -> PointerButtons
Returns the “default value” for a type. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more