pub enum ViewEvent {
Action(Action),
TextChanged {
slot: u16,
text: String,
},
TextSubmitted {
slot: u16,
text: String,
},
Select {
list: u16,
index: u32,
},
}Expand description
Input for a view’s View::dispatch, produced by the host.
Variants§
Action(Action)
A widget with this Action was clicked or activated (Enter/Space).
TextChanged
Text box slot (index in Parts) was edited; text is its text.
TextSubmitted
Enter in text box slot.
Select
Keyboard selection in list list (its owner id) moved to index.
Trait Implementations§
impl StructuralPartialEq for ViewEvent
Auto Trait Implementations§
impl Freeze for ViewEvent
impl RefUnwindSafe for ViewEvent
impl Send for ViewEvent
impl Sync for ViewEvent
impl Unpin for ViewEvent
impl UnsafeUnpin for ViewEvent
impl UnwindSafe for ViewEvent
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