# PointerCaptureChangingEventArgs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/input/struct-pointercapturechangingeventargs/

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

```rust
struct PointerCaptureChangingEventArgs
```

Provides data for the pointer capture changing event: raised before the
capture of a pointer changes; marking it handled cancels the change.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/pointer_event_args.rs#L327)

## Members

- [`pointer`](#function-pointer)
- [`capture_source`](#function-capture_source)
- [`new_value`](#function-new_value)

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

### pointer

```rust
fn pointer(self: &Self) -> &Rc<dyn IPointer>
```

The pointer whose capture is changing.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/pointer_event_args.rs#L353)

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

### capture_source

```rust
fn capture_source(self: &Self) -> CaptureSource
```

What requested the capture change.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/pointer_event_args.rs#L359)

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

### new_value

```rust
fn new_value(self: &Self) -> Option<&Ref<InputElement>>
```

The element that will capture the pointer.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/pointer_event_args.rs#L365)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Deref`
- [`IRoutedEventArgs`](/docs/0.5.0/api/ferroui-base/interactivity/trait-iroutedeventargs/)

## Availability

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