Enum nannou::ui::input::state::mouse::Button [−]
pub enum Button { Unknown, Left, Right, Middle, X1, X2, Button6, Button7, Button8, }
Represent a mouse button.
Variants
Unknown
Unknown mouse button.
Left
Left mouse button.
Right
Right mouse button.
Middle
Middle mouse button.
X1
Extra mouse button number 1.
X2
Extra mouse button number 2.
Button6
Mouse button number 6.
Button7
Mouse button number 7.
Button8
Mouse button number 8.
Trait Implementations
impl Index<MouseButton> for ButtonMap
[src]
impl Index<MouseButton> for ButtonMap
type Output = ButtonPosition
The returned type after indexing.
fn index(
&self,
button: MouseButton
) -> &<ButtonMap as Index<MouseButton>>::Output
[src]
fn index(
&self,
button: MouseButton
) -> &<ButtonMap as Index<MouseButton>>::Output
Performs the indexing (container[index]
) operation.
impl PartialOrd<MouseButton> for MouseButton
impl PartialOrd<MouseButton> for MouseButton
fn partial_cmp(&self, other: &MouseButton) -> Option<Ordering>
fn partial_cmp(&self, other: &MouseButton) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Serialize for MouseButton
impl Serialize for MouseButton
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Hash for MouseButton
impl Hash for MouseButton
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for MouseButton
impl Clone for MouseButton
fn clone(&self) -> MouseButton
fn clone(&self) -> MouseButton
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for MouseButton
impl Debug for MouseButton
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Ord for MouseButton
impl Ord for MouseButton
fn cmp(&self, other: &MouseButton) -> Ordering
fn cmp(&self, other: &MouseButton) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl From<MouseButton> for Button
impl From<MouseButton> for Button
fn from(btn: MouseButton) -> Button
fn from(btn: MouseButton) -> Button
Performs the conversion.
impl From<u32> for MouseButton
impl From<u32> for MouseButton
fn from(n: u32) -> MouseButton
fn from(n: u32) -> MouseButton
Performs the conversion.
impl From<MouseButton> for u32
impl From<MouseButton> for u32
fn from(button: MouseButton) -> u32
fn from(button: MouseButton) -> u32
Performs the conversion.
impl<'de> Deserialize<'de> for MouseButton
impl<'de> Deserialize<'de> for MouseButton
fn deserialize<__D>(
__deserializer: __D
) -> Result<MouseButton, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<MouseButton, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for MouseButton
impl Copy for MouseButton
impl Eq for MouseButton
impl Eq for MouseButton
impl PartialEq<MouseButton> for MouseButton
impl PartialEq<MouseButton> for MouseButton
Auto Trait Implementations
impl Send for MouseButton
impl Send for MouseButton
impl Sync for MouseButton
impl Sync for MouseButton