[−][src]Enum bear_lib_terminal::terminal::Event
pub enum Event { Close, Resize { width: i32, height: i32, }, MouseMove { x: i32, y: i32, }, MouseScroll { delta: i32, }, KeyPressed { key: KeyCode, ctrl: bool, shift: bool, }, KeyReleased { key: KeyCode, ctrl: bool, shift: bool, }, ShiftPressed, ShiftReleased, ControlPressed, ControlReleased, AltPressed, AltReleased, }
A single input event.
Variants
Terminal window closed.
Terminal window resized. Needs to have window.resizeable = true
to occur.
Note, that, as of 40e6253
,
the terminal window is cleared when resized.
Fields of Resize
Mouse moved.
If precise-mouse
is off, generated each time mouse moves from cell to cell, otherwise,
when it moves from pixel to pixel.
Fields of MouseMove
Mouse wheel moved.
Fields of MouseScroll
delta: i32
Amount of steps the wheel rotated.
Positive when scrolled "down"/"backwards".
Negative when scrolled "up"/"forwards"/"away".
A keyboard or mouse button pressed (might repeat, if set in OS).
Fields of KeyPressed
A keyboard or mouse button released.
Fields of KeyReleased
The Shift key pressed (might repeat, if set in OS).
The Shift key released.
The Shift key pressed (might repeat, if set in OS).
The Control key released.
The Alt key pressed (might repeat, if set in OS).
The Alt key released.
Trait Implementations
impl Clone for Event
[src][+]
impl Copy for Event
[src]
impl Debug for Event
[src][+]
impl Eq for Event
[src]
impl Hash for Event
[src][+]
impl PartialEq<Event> for Event
[src][+]
impl StructuralEq for Event
[src]
impl StructuralPartialEq for Event
[src]
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,