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
Key(KeyEvent)
Received when the user presses a key on the keyboard.
Resize(ResizeEvent)
Received when the user resizes the terminal window.
Mouse(MouseEvent)
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]
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