PointerChangedEventArgs
struct · ferroui-headless-vnc · v0.5.0
struct PointerChangedEventArgs
Provides data for the pointer changed event of the server session.
Members
new
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.
x
fn x(self: &Self) -> i32
Gets the X coordinate of the mouse.
y
fn y(self: &Self) -> i32
Gets the Y coordinate of the mouse.
pressed_buttons
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsSameCloneCopyDebugStructuralPartialEqPartialEqEqErasedDestructorIntoEither
Availability
Extracted for x86_64-unknown-linux-gnu, aarch64-apple-darwin. Cargo features are listed in the crate index.