# PointerOverPreProcessor

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

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

```rust
struct PointerOverPreProcessor
```

Tracks which element the pointer is over for one input root, raising
the pointer entered and exited events as it changes.

It observes the raw input of the input manager (subscribe it to
`IInputManager::pre_process`) and is
told by its host when the scene changed under a resting pointer.

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

## Members

- [`new`](#function-new)
- [`last_position`](#function-last_position)
- [`scene_invalidated`](#function-scene_invalidated)

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

### new

```rust
fn new(input_root: Rc<dyn IInputRoot>) -> Self
```

Creates the pre-processor for an input root.

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

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

### last_position

```rust
fn last_position(self: &Self) -> Option<PixelPoint>
```

The last known position of the pointer, in screen coordinates.

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

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

### scene_invalidated

```rust
fn scene_invalidated(self: &Self, dirty_rect: Rect)
```

Called by the host when the part of the scene within `dirty_rect`
changed: re-evaluates which element a resting pointer is over.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`
- [`IObserver<Rc<dyn IRawInputEventArgs>>`](/docs/0.5.0/api/ferroui-base/reactive/use-iobserver/)

## Availability

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