ferro_routed_event_args
macro · ferroui-base · v0.5.0
macro_rules! ferro_routed_event_args
Declares a routed event args type derived from another one.
pub struct TextInputEventArgs {
base: RoutedEventArgs, // always first, always named `base`
pub text: Option<String>,
}
ferro_routed_event_args!(TextInputEventArgs: RoutedEventArgs);
Generates Deref<Target = Base> and the
IRoutedEventArgs
implementation that makes the args deliverable to handlers written
against TextInputEventArgs or any of its base args types.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.