FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PointerEventArgsConverter

    struct · ferroui-xaml-interactions-custom · v0.5.0

    struct PointerEventArgsConverter
    

    Converter for PointerEventArgs.

    The converted value is the position of the pointer relative to the source of the event, or the delta of a delta or wheel event, as a pair (x, y) of f64 (the value tuple of the reference).

    View source

    Members

    instance

    fn instance() -> Rc<PointerEventArgsConverter>
    

    Gets the instance of PointerEventArgsConverter.

    Source

    provide_value

    fn provide_value(self: &Self, _service_provider: &Rc<dyn IServiceProvider>) -> Rc<dyn IValueConverter>
    

    Provides a cached instance of the converter (the markup extension form, {PointerEventArgsConverter}).

    Source

    Trait implementations

    Availability

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