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§
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<D: ResourceDialect> Decode<TouchInputListenerReportTouchInputRequest, D> for TouchInputListenerReportTouchInputRequest
impl<D: ResourceDialect> Decode<TouchInputListenerReportTouchInputRequest, D> for TouchInputListenerReportTouchInputRequest
Source§impl Default for TouchInputListenerReportTouchInputRequest
impl Default for TouchInputListenerReportTouchInputRequest
Source§fn default() -> TouchInputListenerReportTouchInputRequest
fn default() -> TouchInputListenerReportTouchInputRequest
Source§impl<D: ResourceDialect> Encode<TouchInputListenerReportTouchInputRequest, D> for &TouchInputListenerReportTouchInputRequest
impl<D: ResourceDialect> Encode<TouchInputListenerReportTouchInputRequest, D> 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
Source§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
Source§type Borrowed<'a> = &'a TouchInputListenerReportTouchInputRequest
type Borrowed<'a> = &'a TouchInputListenerReportTouchInputRequest
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for TouchInputListenerReportTouchInputRequest
impl StructuralPartialEq for TouchInputListenerReportTouchInputRequest
Auto Trait Implementations§
impl Freeze for TouchInputListenerReportTouchInputRequest
impl RefUnwindSafe for TouchInputListenerReportTouchInputRequest
impl Send for TouchInputListenerReportTouchInputRequest
impl Sync for TouchInputListenerReportTouchInputRequest
impl Unpin for TouchInputListenerReportTouchInputRequest
impl UnwindSafe for TouchInputListenerReportTouchInputRequest
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
)