FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IRawInputEventArgs

    trait · ferroui-base · v0.5.0

    trait IRawInputEventArgs: Any
    

    Implemented by every raw input event args type.

    Raw event args form a small class hierarchy rooted at RawInputEventArgs; a derived type embeds its base as its base field and derefs to it. This trait gives the runtime view of that hierarchy.

    View source

    Members

    as_raw_input_event_args

    fn as_raw_input_event_args(self: &Self) -> &RawInputEventArgs
    

    The base raw input event args.

    Source

    query_args

    fn query_args(self: &Self, type_id: TypeId) -> Option<&dyn Any>
    

    Returns the args viewed as the args type identified by type_id, if the args are of that type or of a type derived from it.

    Source

    Trait implementations

    Availability

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