Struct TouchInputListenerReportTouchInputRequest
pub struct TouchInputListenerReportTouchInputRequest {
pub local_x: Option<f64>,
pub local_y: Option<f64>,
pub time_received: Option<i64>,
pub device_pixel_ratio: Option<f64>,
pub component_name: Option<String>,
pub phase: Option<EventPhase>,
pub pointer_id: Option<u32>,
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 pointer data was received by the reporter. 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.
device_pixel_ratio: Option<f64>
The number of physical pixels, per logical pixel, as reported by the reporter.
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.
phase: Option<EventPhase>
The phase of the touch event.
pointer_id: Option<u32>
pointer_id is used to identify finger in multi touch. each finger
is sent in a separate call to ReportTouchInput()
, and the callee
is responsible for assembling the fingers as needed
device_id: Option<u32>
Trait Implementations§
§impl Clone for TouchInputListenerReportTouchInputRequest
impl Clone for TouchInputListenerReportTouchInputRequest
§fn clone(&self) -> TouchInputListenerReportTouchInputRequest
fn clone(&self) -> TouchInputListenerReportTouchInputRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl<D> Decode<TouchInputListenerReportTouchInputRequest, D> for TouchInputListenerReportTouchInputRequestwhere
D: ResourceDialect,
impl<D> Decode<TouchInputListenerReportTouchInputRequest, D> for TouchInputListenerReportTouchInputRequestwhere
D: ResourceDialect,
§fn new_empty() -> TouchInputListenerReportTouchInputRequest
fn new_empty() -> TouchInputListenerReportTouchInputRequest
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for TouchInputListenerReportTouchInputRequest
impl Default for TouchInputListenerReportTouchInputRequest
§fn default() -> TouchInputListenerReportTouchInputRequest
fn default() -> TouchInputListenerReportTouchInputRequest
§impl<D> Encode<TouchInputListenerReportTouchInputRequest, D> for &TouchInputListenerReportTouchInputRequestwhere
D: ResourceDialect,
impl<D> Encode<TouchInputListenerReportTouchInputRequest, D> for &TouchInputListenerReportTouchInputRequestwhere
D: ResourceDialect,
§impl PartialEq for TouchInputListenerReportTouchInputRequest
impl PartialEq for TouchInputListenerReportTouchInputRequest
§fn eq(&self, other: &TouchInputListenerReportTouchInputRequest) -> bool
fn eq(&self, other: &TouchInputListenerReportTouchInputRequest) -> bool
self
and other
values to be equal, and is used by ==
.§impl TypeMarker for TouchInputListenerReportTouchInputRequest
impl TypeMarker for TouchInputListenerReportTouchInputRequest
§type Owned = TouchInputListenerReportTouchInputRequest
type Owned = TouchInputListenerReportTouchInputRequest
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§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.§impl ValueTypeMarker for TouchInputListenerReportTouchInputRequest
impl ValueTypeMarker for TouchInputListenerReportTouchInputRequest
§type Borrowed<'a> = &'a TouchInputListenerReportTouchInputRequest
type Borrowed<'a> = &'a TouchInputListenerReportTouchInputRequest
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<TouchInputListenerReportTouchInputRequest as TypeMarker>::Owned,
) -> <TouchInputListenerReportTouchInputRequest as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<TouchInputListenerReportTouchInputRequest as TypeMarker>::Owned, ) -> <TouchInputListenerReportTouchInputRequest as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.