class ContactInputReport

Defined at line 3310 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.

Required.

Defined at line 3319 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 3323 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 3330 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 3338 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 3349 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 3353 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 3360 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 3368 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 3379 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 3383 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 3390 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 3398 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 3409 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 3413 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 3420 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 3428 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 3442 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 3446 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 3456 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 3464 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 3478 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 3482 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 3492 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 3500 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 3514 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 3518 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 3528 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 3536 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h