class InputReport

Defined at line 4539 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_types.h

An `InputReport` is a single report that is created by an input device.

An `InputReport` can contain one of many different report types. The report

types are not mutually exclusive. The `event_time` is the time in

nanoseconds when the report was generated.

Public Methods

void InputReport ()

Defined at line 4541 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_types.h

void InputReport (const InputReport & other)

Defined at line 4542 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_types.h

bool IsEmpty ()

Returns whether no field is set.

bool HasUnknownData ()

Returns whether the table references unknown fields.

void _CloseHandles ()
::fidl::WireTableBuilder< ::fuchsia_input_report::wire::InputReport> Builder (::fidl::AnyArena & arena)

Return a builder that by defaults allocates of an arena.

::fidl::WireTableExternalBuilder< ::fuchsia_input_report::wire::InputReport> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_input_report::wire::InputReport>> frame)

Return a builder that relies on explicitly allocating |fidl::ObjectView|s.

int64_t & event_time ()

The monotonic time when the event was generated.

Required.

bool has_event_time ()
::fuchsia_input_report::wire::MouseInputReport & mouse ()

Optional. Present iff the device reports mouse input.

bool has_mouse ()
bool has_trace_id ()
InputReport & clear_event_time ()
InputReport & operator= (const InputReport & other)

Defined at line 4543 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_types.h

void InputReport (InputReport && other)

Defined at line 4544 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_types.h

InputReport & operator= (InputReport && other)

Defined at line 4545 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_types.h

uint64_t & trace_id ()

Unique ID to connect trace async begin/end events.

Optional.

::fuchsia_input_report::wire::SensorInputReport & sensor ()

Optional. Present iff the device reports sensor input.

bool has_sensor ()
::fuchsia_input_report::wire::TouchInputReport & touch ()

Optional. Present iff the device reports touch input.

bool has_touch ()
::fuchsia_input_report::wire::KeyboardInputReport & keyboard ()

Optional. Present iff the device reports keyboard input.

bool has_keyboard ()
::fuchsia_input_report::wire::ConsumerControlInputReport & consumer_control ()

Optional. Present iff the device reports consumer control input.

bool has_consumer_control ()
uint8_t & report_id ()

A device may have multiple input descriptors of the same type. This

field specifies which descriptor this InputReport corresponds to.

Omitted if the device has no more than one descriptor for each type.

Optional.

bool has_report_id ()
::zx::eventpair & wake_lease ()

Optional wake lease for power baton passing.

bool has_wake_lease ()
InputReport & set_event_time (::fidl::ObjectView<int64_t> elem)
InputReport & set_event_time (std::nullptr_t )
InputReport & set_mouse (::fidl::ObjectView< ::fuchsia_input_report::wire::MouseInputReport> elem)
InputReport & set_mouse (std::nullptr_t )
InputReport & clear_mouse ()
InputReport & clear_trace_id ()
InputReport & clear_touch ()
InputReport & set_keyboard (::fidl::ObjectView< ::fuchsia_input_report::wire::KeyboardInputReport> elem)
InputReport & set_keyboard (std::nullptr_t )
InputReport & clear_keyboard ()
InputReport & set_consumer_control (::fidl::ObjectView< ::fuchsia_input_report::wire::ConsumerControlInputReport> elem)
InputReport & set_consumer_control (std::nullptr_t )
InputReport & clear_consumer_control ()
void ~InputReport ()

Defined at line 4547 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_types.h

template <typename... Args>
InputReport & set_event_time (::fidl::AnyArena & allocator, Args &&... args)

Defined at line 4614 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_types.h

template <typename... Args>
InputReport & set_mouse (::fidl::AnyArena & allocator, Args &&... args)

Defined at line 4623 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_types.h

template <typename... Args>
InputReport & set_keyboard (::fidl::AnyArena & allocator, Args &&... args)

Defined at line 4659 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_types.h

template <typename... Args>
InputReport & set_consumer_control (::fidl::AnyArena & allocator, Args &&... args)

Defined at line 4668 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_types.h

InputReport & set_trace_id (::fidl::ObjectView<uint64_t> elem)
InputReport & set_trace_id (std::nullptr_t )
InputReport & set_sensor (::fidl::ObjectView< ::fuchsia_input_report::wire::SensorInputReport> elem)
InputReport & set_sensor (std::nullptr_t )
InputReport & clear_sensor ()
InputReport & set_report_id (uint8_t elem)
InputReport & clear_report_id ()
template <typename... Args>
InputReport & set_trace_id (::fidl::AnyArena & allocator, Args &&... args)

Defined at line 4632 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_types.h

template <typename... Args>
InputReport & set_sensor (::fidl::AnyArena & allocator, Args &&... args)

Defined at line 4641 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_types.h

InputReport & set_touch (::fidl::ObjectView< ::fuchsia_input_report::wire::TouchInputReport> elem)
InputReport & set_touch (std::nullptr_t )
template <typename... Args>
InputReport & set_touch (::fidl::AnyArena & allocator, Args &&... args)

Defined at line 4650 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_types.h

InputReport & set_wake_lease (::zx::eventpair elem)
InputReport & clear_wake_lease ()
void InputReport (::fidl::AnyArena & allocator)
void InputReport (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_input_report::wire::InputReport>> && frame)

This constructor allows a user controlled allocation (not using a Arena).

It should only be used when performance is key.

As soon as the frame is given to the table, it must not be used directly or for another table.

void Allocate (::fidl::AnyArena & allocator)
void Init (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_input_report::wire::InputReport>> && frame_ptr)

Friends

class WireTableBaseBuilder
class WireTableBaseBuilder