pub struct MouseInputListenerReportMouseInputRequest {
pub local_x: Option<f64>,
pub local_y: Option<f64>,
pub time_received: Option<i64>,
pub component_name: Option<String>,
pub buttons: Option<Vec<MouseButton>>,
pub phase: Option<MouseEventPhase>,
pub device_pixel_ratio: Option<f64>,
pub wheel_x_physical_pixel: Option<f64>,
pub wheel_y_physical_pixel: Option<f64>,
pub device_id: Option<u32>,
/* private fields */
}
Fields§
§local_x: Option<f64>
The horizontal coordinate in the reporter’s coordinate system.
local_y: Option<f64>
The vertical coordinate in the reporter’s coordinate system.
time_received: Option<i64>
The monotonic time (ns) the mouse event was received by the client. Note that this value should be used with caution. Some reporters may not be capable of ns-level precision, but still report in ns-level units.
component_name: Option<String>
Name of the component to help distinguish responses from multiple components.
NOTE: This name is independent of component framework, so the reporter and listener are free to agree on an arbitrary value.
The pressed buttons that the reporter received.
phase: Option<MouseEventPhase>
The phase of the mouse event that the reporter received.
device_pixel_ratio: Option<f64>
The device pixel ratio of which the reporter is aware.
Some reporters may account for this scale factor when converting to local coordinates.
wheel_x_physical_pixel: Option<f64>
The horizontal wheel scroll delta in physical pixels.
wheel_y_physical_pixel: Option<f64>
The vertical wheel scroll delta in physical pixels.
device_id: Option<u32>
Trait Implementations§
Source§impl Clone for MouseInputListenerReportMouseInputRequest
impl Clone for MouseInputListenerReportMouseInputRequest
Source§fn clone(&self) -> MouseInputListenerReportMouseInputRequest
fn clone(&self) -> MouseInputListenerReportMouseInputRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<D: ResourceDialect> Decode<MouseInputListenerReportMouseInputRequest, D> for MouseInputListenerReportMouseInputRequest
impl<D: ResourceDialect> Decode<MouseInputListenerReportMouseInputRequest, D> for MouseInputListenerReportMouseInputRequest
Source§impl Default for MouseInputListenerReportMouseInputRequest
impl Default for MouseInputListenerReportMouseInputRequest
Source§fn default() -> MouseInputListenerReportMouseInputRequest
fn default() -> MouseInputListenerReportMouseInputRequest
Source§impl<D: ResourceDialect> Encode<MouseInputListenerReportMouseInputRequest, D> for &MouseInputListenerReportMouseInputRequest
impl<D: ResourceDialect> Encode<MouseInputListenerReportMouseInputRequest, D> for &MouseInputListenerReportMouseInputRequest
Source§impl PartialEq for MouseInputListenerReportMouseInputRequest
impl PartialEq for MouseInputListenerReportMouseInputRequest
Source§fn eq(&self, other: &MouseInputListenerReportMouseInputRequest) -> bool
fn eq(&self, other: &MouseInputListenerReportMouseInputRequest) -> bool
self
and other
values to be equal, and is used by ==
.Source§impl TypeMarker for MouseInputListenerReportMouseInputRequest
impl TypeMarker for MouseInputListenerReportMouseInputRequest
Source§type Owned = MouseInputListenerReportMouseInputRequest
type Owned = MouseInputListenerReportMouseInputRequest
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
.§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 more§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 MouseInputListenerReportMouseInputRequest
impl ValueTypeMarker for MouseInputListenerReportMouseInputRequest
Source§type Borrowed<'a> = &'a MouseInputListenerReportMouseInputRequest
type Borrowed<'a> = &'a MouseInputListenerReportMouseInputRequest
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for MouseInputListenerReportMouseInputRequest
impl StructuralPartialEq for MouseInputListenerReportMouseInputRequest
Auto Trait Implementations§
impl Freeze for MouseInputListenerReportMouseInputRequest
impl RefUnwindSafe for MouseInputListenerReportMouseInputRequest
impl Send for MouseInputListenerReportMouseInputRequest
impl Sync for MouseInputListenerReportMouseInputRequest
impl Unpin for MouseInputListenerReportMouseInputRequest
impl UnwindSafe for MouseInputListenerReportMouseInputRequest
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)