pub enum AppEvent {
Updated,
Key(Key),
Submitted,
Pressed(Str),
Resized(Size),
Appearance(Appearance),
OverlayClosed(OverlayId),
Highlighted {
id: Str,
value: Str,
},
Changed {
id: Str,
value: Str,
},
Filtered {
id: Str,
query: Str,
value: Option<Str>,
},
}Expand description
Host-level event returned by App::next.
Input has already been routed into the retained tree.
Variants§
Updated
Routed input changed the tree; the next App::next call presents it.
Key(Key)
A key no component claimed: it routed through the tree untouched — pending damage from animations or other components never masks it — and matched no quit or clipboard chord. Hosts use it for scene-level hotkeys without intercepting the widget path.
Submitted
The focused widget submitted.
Pressed(Str)
An ID-carrying button fired.
Resized(Size)
A resize settled after Ui::resize ran.
Appearance(Appearance)
The terminal background flipped between dark and light. The retained context has already been restyled; hardcoded colors derived outside the theme are the app’s to refresh.
OverlayClosed(OverlayId)
A cancel from inside a layer dismissed the topmost visible overlay.
Highlighted
An ID-carrying select’s cursor rested on a new option.
Changed
An ID-carrying select committed an option.
Filtered
An ID-carrying filterable select’s query changed.
Trait Implementations§
impl Eq for AppEvent
impl StructuralPartialEq for AppEvent
Auto Trait Implementations§
impl !Freeze for AppEvent
impl RefUnwindSafe for AppEvent
impl Send for AppEvent
impl Sync for AppEvent
impl Unpin for AppEvent
impl UnsafeUnpin for AppEvent
impl UnwindSafe for AppEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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