class InputReport
Defined at line 4518 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
bool HasUnknownData ()
Returns whether the table references unknown fields.
::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.
void Allocate (::fidl::AnyArena & allocator)
void Init (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_input_report::wire::InputReport>> && frame_ptr)
void InputReport ()
Defined at line 4520 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 4521 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 4523 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.
void _CloseHandles ()
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 ()
uint64_t & trace_id ()
Unique ID to connect trace async begin/end events.
Optional.
bool has_trace_id ()
::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 & clear_event_time ()
InputReport & clear_mouse ()
InputReport & clear_trace_id ()
InputReport & clear_sensor ()
InputReport & clear_touch ()
InputReport & clear_keyboard ()
InputReport & clear_consumer_control ()
InputReport & clear_report_id ()
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.
InputReport & operator= (const InputReport & other)
Defined at line 4522 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 4524 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_types.h
InputReport & set_consumer_control (::fidl::ObjectView< ::fuchsia_input_report::wire::ConsumerControlInputReport> elem)
InputReport & set_consumer_control (std::nullptr_t )
void ~InputReport ()
Defined at line 4526 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 4593 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_touch (::fidl::AnyArena & allocator, Args &&... args)
Defined at line 4629 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_types.h
InputReport & set_touch (std::nullptr_t )
InputReport & set_keyboard (::fidl::ObjectView< ::fuchsia_input_report::wire::KeyboardInputReport> elem)
InputReport & set_keyboard (std::nullptr_t )
template <typename... Args>
InputReport & set_sensor (::fidl::AnyArena & allocator, Args &&... args)
Defined at line 4620 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 4638 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 4647 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_types.h
InputReport & set_mouse (::fidl::ObjectView< ::fuchsia_input_report::wire::MouseInputReport> elem)
InputReport & set_mouse (std::nullptr_t )
template <typename... Args>
InputReport & set_mouse (::fidl::AnyArena & allocator, Args &&... args)
Defined at line 4602 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_types.h
InputReport & set_sensor (::fidl::ObjectView< ::fuchsia_input_report::wire::SensorInputReport> elem)
InputReport & set_sensor (std::nullptr_t )
InputReport & set_touch (::fidl::ObjectView< ::fuchsia_input_report::wire::TouchInputReport> elem)
InputReport & set_report_id (uint8_t elem)
template <typename... Args>
InputReport & set_trace_id (::fidl::AnyArena & allocator, Args &&... args)
Defined at line 4611 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_wake_lease (::zx::eventpair elem)
Friends
class WireTableBaseBuilder
class WireTableBaseBuilder