Enum cursive::event::Event [] [src]

pub enum Event {
    WindowResize,
    Refresh,
    Char(char),
    CtrlChar(char),
    AltChar(char),
    Key(Key),
    Shift(Key),
    Alt(Key),
    AltShift(Key),
    Ctrl(Key),
    CtrlShift(Key),
    CtrlAlt(Key),
    Unknown(Vec<u8>),
    // some variants omitted
}

Represents an event as seen by the application.

Variants

Event fired when the window is resized.

Event fired regularly when a auto-refresh is set.

A character was entered (includes numbers, punctuation, ...).

A character was entered with the Ctrl key pressed.

A character was entered with the Alt key pressed.

A non-character key was pressed.

A non-character key was pressed with the Shift key pressed.

A non-character key was pressed with the Alt key pressed.

A non-character key was pressed with the Shift and Alt keys pressed.

A non-character key was pressed with the Ctrl key pressed.

A non-character key was pressed with the Ctrl and Shift keys pressed.

A non-character key was pressed with the Ctrl and Alt keys pressed.

An unknown event was received.

Trait Implementations

impl PartialEq for Event
[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 Event
[src]

impl Clone for Event
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for Event
[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 Event
[src]

Formats the value using the given formatter.

impl From<char> for Event
[src]

Performs the conversion.

impl From<Key> for Event
[src]

Performs the conversion.