pub struct MouseInputDescriptor {
pub movement_x: Option<Axis>,
pub movement_y: Option<Axis>,
pub scroll_v: Option<Axis>,
pub scroll_h: Option<Axis>,
pub buttons: Option<Vec<u8>>,
pub position_x: Option<Axis>,
pub position_y: Option<Axis>,
/* private fields */
}Expand description
Describes the format of the input report that will be sent from the mouse to the device.
At least one of the fields below must be present.
Fields§
§movement_x: Option<Axis>The range of relative X movement.
Optional. Present iff the mouse reports relative X movement.
movement_y: Option<Axis>The range of relative Y movement.
Optional. Present iff the mouse reports relative Y movement.
scroll_v: Option<Axis>The range of relative vertical scroll.
Optional. Present iff the mouse reports relative vertical scroll.
scroll_h: Option<Axis>The range of relative horizontal scroll.
Optional. Present iff the mouse reports relative horizontal scroll.
IDs of the mouse buttons.
Optional. Present iff the mouse reports button state. Must be non-empty if present.
position_x: Option<Axis>The range of 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.
position_y: Option<Axis>The range of 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.
Trait Implementations§
Source§impl Clone for MouseInputDescriptor
impl Clone for MouseInputDescriptor
Source§fn clone(&self) -> MouseInputDescriptor
fn clone(&self) -> MouseInputDescriptor
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 MouseInputDescriptor
impl Debug for MouseInputDescriptor
Source§impl<D: ResourceDialect> Decode<MouseInputDescriptor, D> for MouseInputDescriptor
impl<D: ResourceDialect> Decode<MouseInputDescriptor, D> for MouseInputDescriptor
Source§impl Default for MouseInputDescriptor
impl Default for MouseInputDescriptor
Source§fn default() -> MouseInputDescriptor
fn default() -> MouseInputDescriptor
Source§impl<D: ResourceDialect> Encode<MouseInputDescriptor, D> for &MouseInputDescriptor
impl<D: ResourceDialect> Encode<MouseInputDescriptor, D> for &MouseInputDescriptor
Source§impl PartialEq for MouseInputDescriptor
impl PartialEq for MouseInputDescriptor
Source§fn eq(&self, other: &MouseInputDescriptor) -> bool
fn eq(&self, other: &MouseInputDescriptor) -> bool
self and other values to be equal, and is used by ==.Source§impl TypeMarker for MouseInputDescriptor
impl TypeMarker for MouseInputDescriptor
Source§type Owned = MouseInputDescriptor
type Owned = MouseInputDescriptor
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 MouseInputDescriptor
impl ValueTypeMarker for MouseInputDescriptor
Source§type Borrowed<'a> = &'a MouseInputDescriptor
type Borrowed<'a> = &'a MouseInputDescriptor
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read more