pub enum ZoneEvent {
Key {
code: KeyCode,
modifiers: KeyModifiers,
},
Click {
x: u16,
y: u16,
},
Scroll {
delta: i8,
},
FocusGained,
FocusLost,
Resize {
width: u16,
height: u16,
},
}Expand description
Events delivered to zone plugins.
Variants§
Key
A key was pressed while this zone was focused.
Click
Mouse click inside this zone.
Scroll
Mouse scroll inside this zone.
FocusGained
Zone was focused.
FocusLost
Zone lost focus.
Resize
Terminal was resized.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ZoneEvent
impl RefUnwindSafe for ZoneEvent
impl Send for ZoneEvent
impl Sync for ZoneEvent
impl Unpin for ZoneEvent
impl UnsafeUnpin for ZoneEvent
impl UnwindSafe for ZoneEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more