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 Ord for MouseButton

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl Copy for MouseButton

impl Hash for MouseButton

impl Clone for MouseButton

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<u32> for MouseButton

Performs the conversion.

impl PartialEq<MouseButton> for MouseButton

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

1.0.0
[src]

This method tests for !=.

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

impl Debug for MouseButton

Formats the value using the given formatter.

impl Eq for MouseButton

impl Serialize for MouseButton

Serialize this value into the given Serde serializer. Read more

impl PartialOrd<MouseButton> for MouseButton

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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