class MediaButtonsEvent
Defined at line 3028 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/wire_types.h
Public Methods
bool IsEmpty ()
Returns whether no field is set.
bool HasUnknownData ()
Returns whether the table references unknown fields.
void MediaButtonsEvent ()
Defined at line 3030 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/wire_types.h
void MediaButtonsEvent (const MediaButtonsEvent & other)
Defined at line 3031 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/wire_types.h
void _CloseHandles ()
::fidl::WireTableBuilder< ::fuchsia_ui_input::wire::MediaButtonsEvent> Builder (::fidl::AnyArena & arena)
Return a builder that by defaults allocates of an arena.
::fidl::WireTableExternalBuilder< ::fuchsia_ui_input::wire::MediaButtonsEvent> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_ui_input::wire::MediaButtonsEvent>> frame)
Return a builder that relies on explicitly allocating |fidl::ObjectView|s.
bool has_volume_up ()
MediaButtonsEvent & operator= (const MediaButtonsEvent & other)
Defined at line 3032 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/wire_types.h
void MediaButtonsEvent (MediaButtonsEvent && other)
Defined at line 3033 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/wire_types.h
MediaButtonsEvent & operator= (MediaButtonsEvent && other)
Defined at line 3034 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/wire_types.h
int8_t & volume ()
Net volume change direction: +1 when volume up is pressed, -1 when
volume down is pressed, and 0 when neither or both are pressed.
Prefer `volume_up` and `volume_down` when discrete button states are
needed (for example, to detect simultaneous presses).
bool has_volume ()
bool & mic_mute ()
bool has_mic_mute ()
bool & pause ()
bool has_pause ()
bool & camera_disable ()
bool has_camera_disable ()
bool & power ()
bool has_power ()
bool & function ()
bool has_function ()
uint32_t & device_id ()
bool has_device_id ()
::zx::eventpair & wake_lease ()
Optional wake lease for power baton passing.
bool has_wake_lease ()
uint64_t & trace_flow_id ()
Optional trace flow ID to connect the event flow.
bool has_trace_flow_id ()
bool & volume_up ()
Whether the volume up button is pressed. Unlike `volume` (field 1),
which sums volume up (+1) and volume down (-1) and cancels out to 0
when both are pressed simultaneously, `volume_up` and `volume_down`
report each button's state independently.
bool & volume_down ()
Whether the volume down button is pressed. See `volume_up` and `volume`
(field 1) for how this relates to the net volume field.
bool has_volume_down ()
MediaButtonsEvent & set_volume (int8_t elem)
MediaButtonsEvent & clear_volume ()
MediaButtonsEvent & set_mic_mute (bool elem)
MediaButtonsEvent & clear_mic_mute ()
MediaButtonsEvent & set_pause (bool elem)
MediaButtonsEvent & clear_pause ()
MediaButtonsEvent & set_camera_disable (bool elem)
MediaButtonsEvent & clear_camera_disable ()
MediaButtonsEvent & set_power (bool elem)
MediaButtonsEvent & clear_power ()
MediaButtonsEvent & set_function (bool elem)
MediaButtonsEvent & clear_function ()
MediaButtonsEvent & set_device_id (uint32_t elem)
MediaButtonsEvent & clear_device_id ()
MediaButtonsEvent & set_wake_lease (::zx::eventpair elem)
MediaButtonsEvent & clear_wake_lease ()
MediaButtonsEvent & set_trace_flow_id (::fidl::ObjectView<uint64_t> elem)
MediaButtonsEvent & set_trace_flow_id (std::nullptr_t )
MediaButtonsEvent & clear_trace_flow_id ()
MediaButtonsEvent & set_volume_up (bool elem)
MediaButtonsEvent & clear_volume_up ()
MediaButtonsEvent & set_volume_down (bool elem)
MediaButtonsEvent & clear_volume_down ()
void MediaButtonsEvent (::fidl::AnyArena & allocator)
void MediaButtonsEvent (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_ui_input::wire::MediaButtonsEvent>> && 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_ui_input::wire::MediaButtonsEvent>> && frame_ptr)
void ~MediaButtonsEvent ()
Defined at line 3036 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/wire_types.h
Friends
class WireTableBaseBuilder
class WireTableBaseBuilder