# ferro_routed_event_args

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/macro-ferro_routed_event_args/

**macro** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
macro_rules! ferro_routed_event_args
```

Declares a routed event args type derived from another one.

```ignore
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.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/interactivity/routed_event_args.rs#L228)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
