Enum yacll::input::Event

source ·
pub enum Event {
    FocusGained,
    FocusLost,
    Key(KeyEvent),
    Mouse(MouseEvent),
    Paste(String),
    Resize(u16u16),
}
Expand description

Possible events.

Variants

FocusGained

The terminal gained focus.

FocusLost

The terminal lost focus.

Key(KeyEvent)

A single key event with additional pressed modifiers.

Mouse(MouseEvent)

A single mouse event with additional pressed modifiers.

Paste(String)

A string that was pasted into the terminal. Only emitted if bracketed paste has been enabled.

Resize(u16u16)

An resize event with new dimensions after resize (columns, rows). Note that resize events can be occur in batches.

Trait Implementations

The type returned in the event of a conversion error.
Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.