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>,
/* 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
Trait Implementations§
source§impl Clone for TouchInputListenerReportTouchInputRequest
impl Clone for TouchInputListenerReportTouchInputRequest
source§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 moresource§impl Decode<TouchInputListenerReportTouchInputRequest> for TouchInputListenerReportTouchInputRequest
impl Decode<TouchInputListenerReportTouchInputRequest> for TouchInputListenerReportTouchInputRequest
source§impl Default for TouchInputListenerReportTouchInputRequest
impl Default for TouchInputListenerReportTouchInputRequest
source§fn default() -> TouchInputListenerReportTouchInputRequest
fn default() -> TouchInputListenerReportTouchInputRequest
source§impl Encode<TouchInputListenerReportTouchInputRequest> for &TouchInputListenerReportTouchInputRequest
impl Encode<TouchInputListenerReportTouchInputRequest> for &TouchInputListenerReportTouchInputRequest
source§impl PartialEq for TouchInputListenerReportTouchInputRequest
impl PartialEq for TouchInputListenerReportTouchInputRequest
source§fn eq(&self, other: &TouchInputListenerReportTouchInputRequest) -> bool
fn eq(&self, other: &TouchInputListenerReportTouchInputRequest) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for TouchInputListenerReportTouchInputRequest
impl TypeMarker for TouchInputListenerReportTouchInputRequest
§type Owned = TouchInputListenerReportTouchInputRequest
type Owned = TouchInputListenerReportTouchInputRequest
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 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