pub struct ContactInputReport {
pub contact_id: Option<u32>,
pub position_x: Option<i64>,
pub position_y: Option<i64>,
pub pressure: Option<i64>,
pub contact_width: Option<i64>,
pub contact_height: Option<i64>,
pub confidence: Option<bool>,
/* private fields */
}
Expand description
ContactInputReport
describes one touch on a touch device.
Fields§
§contact_id: Option<u32>
Identifier for this contact.
position_x: Option<i64>
A contact’s position on the x axis.
position_y: Option<i64>
A contact’s position on the y axis.
pressure: Option<i64>
Pressure of the contact.
contact_width: Option<i64>
Width of the bounding box around the touch contact. Combined with
contact_height
, this describes the area of the touch contact.
contact_width
and contact_height
should both have units of distance,
and they should be in the same units as position_x
and position_y
.
contact_height: Option<i64>
Height of the bounding box around the touch contact. Combined with
contact_width
, this describes the area of the touch contact.
contact_width
and contact_height
should both have units of distance,
and they should be in the same units as position_x
and position_y
.
confidence: Option<bool>
Also known as touch valid. Indicates the device’s confidence that the touch contact was an intended, valid contact. The device should report 0 if the contact is not a valid touch. The device should report 1 if the contact is intended and valid (e.g. a pointing touch)
Trait Implementations§
Source§impl Clone for ContactInputReport
impl Clone for ContactInputReport
Source§fn clone(&self) -> ContactInputReport
fn clone(&self) -> ContactInputReport
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ContactInputReport
impl Debug for ContactInputReport
Source§impl<D: ResourceDialect> Decode<ContactInputReport, D> for ContactInputReport
impl<D: ResourceDialect> Decode<ContactInputReport, D> for ContactInputReport
Source§impl Default for ContactInputReport
impl Default for ContactInputReport
Source§fn default() -> ContactInputReport
fn default() -> ContactInputReport
Source§impl<D: ResourceDialect> Encode<ContactInputReport, D> for &ContactInputReport
impl<D: ResourceDialect> Encode<ContactInputReport, D> for &ContactInputReport
Source§impl PartialEq for ContactInputReport
impl PartialEq for ContactInputReport
Source§impl TypeMarker for ContactInputReport
impl TypeMarker for ContactInputReport
Source§type Owned = ContactInputReport
type Owned = ContactInputReport
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 ContactInputReport
impl ValueTypeMarker for ContactInputReport
Source§type Borrowed<'a> = &'a ContactInputReport
type Borrowed<'a> = &'a ContactInputReport
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more