class ContactInputReport
Defined at line 3186 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
`ContactInputReport` describes one touch on a touch device.
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
ContactInputReport & set_contact_id (uint32_t _value)
ContactInputReport & set_position_x (int64_t _value)
ContactInputReport & set_position_y (int64_t _value)
ContactInputReport & set_pressure (int64_t _value)
ContactInputReport & set_contact_width (int64_t _value)
ContactInputReport & set_contact_height (int64_t _value)
ContactInputReport & set_confidence (bool _value)
void ContactInputReport ()
void ContactInputReport (ContactInputReport && other)
void ~ContactInputReport ()
ContactInputReport & operator= (ContactInputReport && other)
::std::unique_ptr<ContactInputReport> New ()
void Encode (::fidl::Encoder *_encoder,size_t_offset,std::optional< ::fidl::HandleInformation>maybe_handle_info)
void Decode (::fidl::Decoder *_decoder,ContactInputReport *_value,size_t_offset)
zx_status_t Clone (ContactInputReport * _result)
const uint32_t & contact_id ()
Identifier for this contact.
Defined at line 3193 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_contact_id ()
Defined at line 3197 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
uint32_t * mutable_contact_id ()
Identifier for this contact.
Defined at line 3202 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_contact_id ()
Defined at line 3210 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const int64_t & position_x ()
A contact's position on the x axis.
Defined at line 3219 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_position_x ()
Defined at line 3223 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
int64_t * mutable_position_x ()
A contact's position on the x axis.
Defined at line 3228 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_position_x ()
Defined at line 3236 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const int64_t & position_y ()
A contact's position on the y axis.
Defined at line 3245 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_position_y ()
Defined at line 3249 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
int64_t * mutable_position_y ()
A contact's position on the y axis.
Defined at line 3254 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_position_y ()
Defined at line 3262 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const int64_t & pressure ()
Pressure of the contact.
Defined at line 3271 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_pressure ()
Defined at line 3275 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
int64_t * mutable_pressure ()
Pressure of the contact.
Defined at line 3280 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_pressure ()
Defined at line 3288 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const int64_t & contact_width ()
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`.
Defined at line 3300 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_contact_width ()
Defined at line 3304 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
int64_t * mutable_contact_width ()
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`.
Defined at line 3312 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_contact_width ()
Defined at line 3320 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const int64_t & contact_height ()
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`.
Defined at line 3332 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_contact_height ()
Defined at line 3336 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
int64_t * mutable_contact_height ()
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`.
Defined at line 3344 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_contact_height ()
Defined at line 3352 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const bool & confidence ()
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)
Defined at line 3364 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_confidence ()
Defined at line 3368 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool * mutable_confidence ()
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)
Defined at line 3376 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_confidence ()
Defined at line 3384 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h