# PointerChangedEventArgs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-headless-vnc/remote_viewing/vnc/struct-pointerchangedeventargs/

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

```rust
struct PointerChangedEventArgs
```

Provides data for the pointer changed event of the server session.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Headless/FerroUI.Headless.Vnc/remote_viewing/vnc/pointer_changed_event_args.rs#L6)

## Members

- [`new`](#function-new)
- [`x`](#function-x)
- [`y`](#function-y)
- [`pressed_buttons`](#function-pressed_buttons)

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

### new

```rust
fn new(x: i32, y: i32, pressed_buttons: i32) -> Self
```

Initializes a new instance of the `PointerChangedEventArgs` class.

`x` and `y` are the coordinates of the mouse; `pressed_buttons` is a
bit mask of pressed mouse buttons, in X11 convention: 1 is left, 2
is middle, and 4 is right. Mouse wheel scrolling is treated as a
button event: 8 for up and 16 for down.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Headless/FerroUI.Headless.Vnc/remote_viewing/vnc/pointer_changed_event_args.rs#L19)

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

### x

```rust
fn x(self: &Self) -> i32
```

Gets the X coordinate of the mouse.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Headless/FerroUI.Headless.Vnc/remote_viewing/vnc/pointer_changed_event_args.rs#L28)

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

### y

```rust
fn y(self: &Self) -> i32
```

Gets the Y coordinate of the mouse.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Headless/FerroUI.Headless.Vnc/remote_viewing/vnc/pointer_changed_event_args.rs#L33)

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

### pressed_buttons

```rust
fn pressed_buttons(self: &Self) -> i32
```

Gets a bit mask of pressed mouse buttons, in X11 convention: 1 is
left, 2 is middle, and 4 is right. Mouse wheel scrolling is treated
as a button event: 8 for up and 16 for down.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Headless/FerroUI.Headless.Vnc/remote_viewing/vnc/pointer_changed_event_args.rs#L40)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Same`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `ErasedDestructor`
- `IntoEither`

## Availability

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