Enum turtle::event::MouseButton[]

pub enum MouseButton {
    Unknown,
    Left,
    Right,
    Middle,
    X1,
    X2,
    Button6,
    Button7,
    Button8,
}

Represent a mouse button.

Variants

Unknown mouse button.

Left mouse button.

Right mouse button.

Middle mouse button.

Extra mouse button number 1.

Extra mouse button number 2.

Mouse button number 6.

Mouse button number 7.

Mouse button number 8.

Trait Implementations

impl PartialOrd<MouseButton> for MouseButton

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Hash for MouseButton

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for MouseButton

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for MouseButton

Formats the value using the given formatter. Read more

impl Ord for MouseButton

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl From<MouseButton> for Button

Performs the conversion.

impl From<u32> for MouseButton

Performs the conversion.

impl From<MouseButton> for u32

Performs the conversion.

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

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for MouseButton

Serialize this value into the given Serde serializer. Read more

impl Copy for MouseButton

impl Eq for MouseButton

impl PartialEq<MouseButton> for MouseButton

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for MouseButton

impl Sync for MouseButton