Trait input::TextEvent [−][src]
pub trait TextEvent: Sized {
fn from_text(text: &str, old_event: &Self) -> Option<Self>;
fn text<U, F>(&self, f: F) -> Option<U>
where
F: FnMut(&str) -> U;
fn text_args(&self) -> Option<String> { ... }
}
Expand description
When receiving text from user, such as typing a character.
Required methods
Creates a text event.
Preserves time stamp from original input event, if any.