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(i32),
}

Represents an event as seen by the application.

Variants

WindowResize

Event fired when the window is resized.

Refresh

Event fired regularly when a auto-refresh is set.

Char(char)

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

CtrlChar(char)

A character was entered with the Ctrl key pressed.

AltChar(char)

A character was entered with the Alt key pressed.

Key(Key)

A non-character key was pressed.

Shift(Key)

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

Alt(Key)

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

AltShift(Key)

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

Ctrl(Key)

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

CtrlShift(Key)

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

CtrlAlt(Key)

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

Unknown(i32)

An unknown event was received.

Trait Implementations

impl Debug for Event
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Hash for Event
[src]

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl Copy for Event
[src]

impl Clone for Event
[src]

fn clone(&self) -> Event

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Eq for Event
[src]

impl PartialEq for Event
[src]

fn eq(&self, __arg_0: &Event) -> bool

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

fn ne(&self, __arg_0: &Event) -> bool

This method tests for !=.

impl From<char> for Event
[src]

fn from(c: char) -> Event

Performs the conversion.

impl From<Key> for Event
[src]

fn from(k: Key) -> Event

Performs the conversion.