Enum termbox::Event [] [src]

pub enum Event {
    Key(KeyEvent),
    Resize(ResizeEvent),
    Mouse(MouseEvent),
}

Represents an event that describes a user input action. Events can be received with Termbox::peek_event or Termbox::poll_event.

Variants

Received when the user presses a key on the keyboard.

Received when the user resizes the terminal window.

Received when the user presses a mouse button or uses the mouse wheel on the terminal. Mouse events are disabled by default, and must be enabled with Termbox::set_mouse_enabled.

Trait Implementations

impl Clone for Event
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Event
[src]

impl Debug for Event
[src]

Formats the value using the given formatter.