FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PointerChangedEventArgs

    struct · ferroui-headless-vnc · v0.5.0

    struct PointerChangedEventArgs
    

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

    View source

    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.

    Source

    x

    fn x(self: &Self) -> i32
    

    Gets the X coordinate of the mouse.

    Source

    y

    fn y(self: &Self) -> i32
    

    Gets the Y coordinate of the mouse.

    Source

    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.

    Source

    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
    • AnyValue
    • 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.