Enum nannou::ui::input::MouseButton[]

pub enum MouseButton {
    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 Clone for MouseButton

impl Copy for MouseButton

impl Debug for MouseButton

impl<'de> Deserialize<'de> for MouseButton

impl Eq for MouseButton

impl From<MouseButton> for Button

impl From<u32> for MouseButton

impl Hash for MouseButton

impl Index<MouseButton> for ButtonMap[src]

type Output = ButtonPosition

The returned type after indexing.

impl Ord for MouseButton

impl PartialEq<MouseButton> for MouseButton

impl PartialOrd<MouseButton> for MouseButton

impl Serialize for MouseButton

impl StructuralEq for MouseButton

impl StructuralPartialEq for MouseButton

Auto Trait Implementations

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    T: Component + Float,
    D: AdaptFrom<S, Swp, Dwp, T>,
    Swp: WhitePoint,
    Dwp: WhitePoint
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast<T> for T

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> NodeId for T where
    T: 'static + Copy + Clone + PartialEq<T> + Eq + Hash + Send
[src]

impl<N> NodeTrait for N where
    N: Copy + Ord + Hash
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SetParameter for T

impl<T> Style for T where
    T: Any + Debug + PartialEq<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,