pub enum ComponentInput<'a, Ctx> {
Command {
name: &'a str,
ctx: Ctx,
},
Key(KeyEvent),
Mouse(MouseEvent),
Scroll {
column: u16,
row: u16,
delta: isize,
modifiers: KeyModifiers,
},
Resize(u16, u16),
Tick,
}Expand description
Routed input delivered to interactive components.
Variants§
Trait Implementations§
Source§impl<'a, Ctx: Clone> Clone for ComponentInput<'a, Ctx>
impl<'a, Ctx: Clone> Clone for ComponentInput<'a, Ctx>
Source§fn clone(&self) -> ComponentInput<'a, Ctx>
fn clone(&self) -> ComponentInput<'a, Ctx>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, Ctx: Debug> Debug for ComponentInput<'a, Ctx>
impl<'a, Ctx: Debug> Debug for ComponentInput<'a, Ctx>
Source§impl<'a, Id, Ctx> From<RoutedEvent<'a, Id, Ctx>> for ComponentInput<'a, Ctx>where
Id: ComponentId,
Ctx: BindingContext,
impl<'a, Id, Ctx> From<RoutedEvent<'a, Id, Ctx>> for ComponentInput<'a, Ctx>where
Id: ComponentId,
Ctx: BindingContext,
Source§fn from(event: RoutedEvent<'a, Id, Ctx>) -> Self
fn from(event: RoutedEvent<'a, Id, Ctx>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, Ctx> Freeze for ComponentInput<'a, Ctx>where
Ctx: Freeze,
impl<'a, Ctx> RefUnwindSafe for ComponentInput<'a, Ctx>where
Ctx: RefUnwindSafe,
impl<'a, Ctx> Send for ComponentInput<'a, Ctx>where
Ctx: Send,
impl<'a, Ctx> Sync for ComponentInput<'a, Ctx>where
Ctx: Sync,
impl<'a, Ctx> Unpin for ComponentInput<'a, Ctx>where
Ctx: Unpin,
impl<'a, Ctx> UnsafeUnpin for ComponentInput<'a, Ctx>where
Ctx: UnsafeUnpin,
impl<'a, Ctx> UnwindSafe for ComponentInput<'a, Ctx>where
Ctx: UnwindSafe,
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