# PointerEventArgsConverter

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-xaml-interactions-custom/converters/struct-pointereventargsconverter/

**struct** · [`ferroui-xaml-interactions-custom`](/docs/0.5.0/api/ferroui-xaml-interactions-custom/) · v0.5.0

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/converters/pointer_event_args_converter.rs#L21)

## Members

- [`instance`](#function-instance)
- [`provide_value`](#function-provide_value)

<a id="function-instance"></a>

### instance

```rust
fn instance() -> Rc<PointerEventArgsConverter>
```

Gets the instance of `PointerEventArgsConverter`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/converters/pointer_event_args_converter.rs#L25)

<a id="function-provide_value"></a>

### provide_value

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/converters/pointer_event_args_converter.rs#L34)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Debug`
- `Default`
- `PartialEq`
- [`IValueConverter`](/docs/0.5.0/api/ferroui-base/data/converters/trait-ivalueconverter/)
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

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