ferroui_base/input/text_input_event_args.rs
1use crate::ferro_routed_event_args;
2use crate::interactivity::RoutedEventArgs;
3
4/// Provides information specific to a text input event.
5#[derive(Clone, Default)]
6pub struct TextInputEventArgs {
7 base: RoutedEventArgs,
8
9 /// The text that was input.
10 pub text: Option<String>,
11}
12
13ferro_routed_event_args!(TextInputEventArgs: RoutedEventArgs);
14
15impl TextInputEventArgs {
16 /// Creates args with no text and no routed event.
17 pub fn new() -> Self {
18 Self::default()
19 }
20}