pub struct MouseInputReport {
pub movement_x: Option<i64>,
pub movement_y: Option<i64>,
pub scroll_v: Option<i64>,
pub scroll_h: Option<i64>,
pub pressed_buttons: Option<Vec<u8>>,
pub position_x: Option<i64>,
pub position_y: Option<i64>,
/* private fields */
}Expand description
MouseReport gives the relative movement of the mouse and currently
pressed buttons. Relative means the movement seen between the previous
report and this report. The client is responsible for tracking this and
converting it to absolute movement.
At least one of the fields below must be present.
Fields§
§movement_x: Option<i64>Relative X positional displacement.
Optional. Present iff the mouse reports relative X movement.
Must not co-exist with position_x and position_y.
movement_y: Option<i64>Relative Y positional displacement.
Optional. Present iff the mouse reports relative Y movement.
Must not co-exist with position_x and position_y.
scroll_v: Option<i64>Relative vertical scrolling displacement.
Optional. Present iff the mouse reports relative vertical scroll.
scroll_h: Option<i64>Relative horizontal scrolling displacement.
Optional. Present iff the mouse reports relative horizontal scroll.
A list of currently pressed buttons.
Optional. Empty iff no button is pressed. Present iff the mouse reports button state.
position_x: Option<i64>The position of X. The main use of position is from virtual mice like over VNC.
Optional. Present iff the mouse reports absolute X position.
Must not co-exist with movement_x and movement_y.
position_y: Option<i64>The position of Y. The main use of position is from virtual mice like over VNC.
Optional. Present iff the mouse reports absolute Y position.
Must not co-exist with movement_x and movement_y.
Trait Implementations§
Source§impl Clone for MouseInputReport
impl Clone for MouseInputReport
Source§fn clone(&self) -> MouseInputReport
fn clone(&self) -> MouseInputReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MouseInputReport
impl Debug for MouseInputReport
Source§impl<D: ResourceDialect> Decode<MouseInputReport, D> for MouseInputReport
impl<D: ResourceDialect> Decode<MouseInputReport, D> for MouseInputReport
Source§impl Default for MouseInputReport
impl Default for MouseInputReport
Source§fn default() -> MouseInputReport
fn default() -> MouseInputReport
Source§impl<D: ResourceDialect> Encode<MouseInputReport, D> for &MouseInputReport
impl<D: ResourceDialect> Encode<MouseInputReport, D> for &MouseInputReport
Source§impl PartialEq for MouseInputReport
impl PartialEq for MouseInputReport
Source§fn eq(&self, other: &MouseInputReport) -> bool
fn eq(&self, other: &MouseInputReport) -> bool
self and other values to be equal, and is used by ==.Source§impl TypeMarker for MouseInputReport
impl TypeMarker for MouseInputReport
Source§type Owned = MouseInputReport
type Owned = MouseInputReport
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for MouseInputReport
impl ValueTypeMarker for MouseInputReport
Source§type Borrowed<'a> = &'a MouseInputReport
type Borrowed<'a> = &'a MouseInputReport
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read more