FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.