class ContactInputReport
Defined at line 3193 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.
void ContactInputReport ()
void ContactInputReport (ContactInputReport && other)
const uint32_t & contact_id ()
Identifier for this contact.
Required.
Defined at line 3202 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 3206 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.
Required.
Defined at line 3213 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 3221 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.
Required.
Defined at line 3232 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 3236 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.
Required.
Defined at line 3243 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 3251 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.
Required.
Defined at line 3262 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 3266 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.
Required.
Defined at line 3273 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 3281 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.
Required iff `pressure` is present in the descriptor.
Defined at line 3292 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 3296 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.
Required iff `pressure` is present in the descriptor.
Defined at line 3303 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 3311 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`.
Required iff `contact_width` is present in the descriptor.
Defined at line 3325 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 3329 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`.
Required iff `contact_width` is present in the descriptor.
Defined at line 3339 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 3347 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`.
Required iff `contact_height` is present in the descriptor.
Defined at line 3361 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 3365 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`.
Required iff `contact_height` is present in the descriptor.
Defined at line 3375 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 3383 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).
Optional.
Defined at line 3397 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 3401 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).
Optional.
Defined at line 3411 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 3419 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
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 ()
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)