Enum cursive::event::MouseEvent[][src]

pub enum MouseEvent {
    Press(MouseButton),
    Release(MouseButton),
    Hold(MouseButton),
    WheelUp,
    WheelDown,
}

Represents a possible event sent by the mouse.

Variants

A button was pressed.

A button was released.

A button is being held.

The wheel was moved up.

The wheel was moved down.

Methods

impl MouseEvent
[src]

Returns the button used by this event, if any.

Returns None if self is WheelUp or WheelDown.

Returns true if self is an event that can grab focus.

This includes Press, WheelUp and WheelDown.

Trait Implementations

impl PartialEq for MouseEvent
[src]

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

This method tests for !=.

impl Eq for MouseEvent
[src]

impl Clone for MouseEvent
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for MouseEvent
[src]

impl Hash for MouseEvent
[src]

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

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

impl Debug for MouseEvent
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for MouseEvent

impl Sync for MouseEvent