[−][src]Struct druid::MouseButtons
A set of MouseButton
s.
Implementations
impl MouseButtons
[src]
pub fn new() -> MouseButtons
[src]
Create a new empty set.
pub fn insert(&mut self, button: MouseButton)
[src]
Add the button
to the set.
pub fn remove(&mut self, button: MouseButton)
[src]
Remove the button
from the set.
pub fn with(self, button: MouseButton) -> MouseButtons
[src]
Builder-style method for adding the button
to the set.
pub fn without(self, button: MouseButton) -> MouseButtons
[src]
Builder-style method for removing the button
from the set.
pub fn contains(self, button: MouseButton) -> bool
[src]
Returns true
if the button
is in the set.
pub fn is_empty(self) -> bool
[src]
Returns true
if the set is empty.
pub fn is_superset(self, buttons: MouseButtons) -> bool
[src]
Returns true
if all the buttons
are in the set.
pub fn has_left(self) -> bool
[src]
Returns true
if MouseButton::Left
is in the set.
pub fn has_right(self) -> bool
[src]
Returns true
if MouseButton::Right
is in the set.
pub fn has_middle(self) -> bool
[src]
Returns true
if MouseButton::Middle
is in the set.
pub fn has_x1(self) -> bool
[src]
Returns true
if MouseButton::X1
is in the set.
pub fn has_x2(self) -> bool
[src]
Returns true
if MouseButton::X2
is in the set.
pub fn extend(&mut self, buttons: MouseButtons)
[src]
Adds all the buttons
to the set.
pub fn union(self, other: MouseButtons) -> MouseButtons
[src]
Returns a union of the values in self
and other
.
pub fn clear(&mut self)
[src]
Clear the set.
Trait Implementations
impl Clone for MouseButtons
[src]
fn clone(&self) -> MouseButtons
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MouseButtons
[src]
impl Debug for MouseButtons
[src]
impl Default for MouseButtons
[src]
fn default() -> MouseButtons
[src]
impl Eq for MouseButtons
[src]
impl PartialEq<MouseButtons> for MouseButtons
[src]
fn eq(&self, other: &MouseButtons) -> bool
[src]
fn ne(&self, other: &MouseButtons) -> bool
[src]
impl StructuralEq for MouseButtons
[src]
impl StructuralPartialEq for MouseButtons
[src]
Auto Trait Implementations
impl RefUnwindSafe for MouseButtons
impl Send for MouseButtons
impl Sync for MouseButtons
impl Unpin for MouseButtons
impl UnwindSafe for MouseButtons
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AnyEq for T where
T: PartialEq<T> + Any,
[src]
T: PartialEq<T> + Any,
fn equals(&self, other: &(dyn Any + 'static)) -> bool
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> RoundFrom<T> for T
fn round_from(x: T) -> T
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
U: RoundFrom<T>,
fn round_into(self) -> U
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,