class TouchInteractionId

Defined at line 322 of file fidling/gen/sdk/fidl/fuchsia.ui.pointer/fuchsia.ui.pointer/cpp/fidl/fuchsia.ui.pointer/cpp/natural_types.h

A unique identifier for a "interaction" of touch events in an event stream.

Touch events are observed as a succession of interactions, as fingers engage

and disengage with the display.

A finite sequence of pointer events that follows the `EventPhase` state

machine, starting from the initial state ADD, is called an **interaction**.

A closed (or past) interaction is one where it has reached the terminal

state (REMOVE or CANCEL); an open (or current) interaction is one where it

has not.

For a given device pointer, a stream of events is observed as a succession

of zero or more closed interactions (the past history of user engagement),

followed by at most one open interaction (the current user engagement).

Because we need to group pointer events by their interaction, touch event

carries an **interaction id** that is unique in that pointer stream. This

common reference makes it possible to operate on a closed interaction, as

well as an open interaction.

Also see `EventPhase` for a discussion on event streams by mice.

Public Methods

void TouchInteractionId (Storage_ storage)
void TouchInteractionId (uint32_t device_id, uint32_t pointer_id, uint32_t interaction_id)
void TouchInteractionId ()

Default constructs a |TouchInteractionId| only if all of its members are default constructible.

Defined at line 333 of file fidling/gen/sdk/fidl/fuchsia.ui.pointer/fuchsia.ui.pointer/cpp/fidl/fuchsia.ui.pointer/cpp/natural_types.h

void TouchInteractionId (TouchInteractionId && )

Defined at line 336 of file fidling/gen/sdk/fidl/fuchsia.ui.pointer/fuchsia.ui.pointer/cpp/fidl/fuchsia.ui.pointer/cpp/natural_types.h

void TouchInteractionId (const TouchInteractionId & other)
TouchInteractionId & operator= (TouchInteractionId && )

Defined at line 337 of file fidling/gen/sdk/fidl/fuchsia.ui.pointer/fuchsia.ui.pointer/cpp/fidl/fuchsia.ui.pointer/cpp/natural_types.h

TouchInteractionId & operator= (const TouchInteractionId & other)
bool operator== (const TouchInteractionId & other)
bool operator!= (const TouchInteractionId & other)
uint32_t device_id ()

An identifier for the pointer device that issues touch event streams.

A device may own multiple pointers, each with its own |pointer_id|.

uint32_t & device_id ()

An identifier for the pointer device that issues touch event streams.

A device may own multiple pointers, each with its own |pointer_id|.

TouchInteractionId & device_id (uint32_t value)

An identifier for the pointer device that issues touch event streams.

A device may own multiple pointers, each with its own |pointer_id|.

uint32_t pointer_id ()

An identifier of the pointer that issued this event. It is unique only

to a specific |device_id|. Each (device_id, pointer_id) pair issues at

most one open interaction at a time.

uint32_t & pointer_id ()

An identifier of the pointer that issued this event. It is unique only

to a specific |device_id|. Each (device_id, pointer_id) pair issues at

most one open interaction at a time.

TouchInteractionId & pointer_id (uint32_t value)

An identifier of the pointer that issued this event. It is unique only

to a specific |device_id|. Each (device_id, pointer_id) pair issues at

most one open interaction at a time.

uint32_t interaction_id ()

An identifier of the interaction. It is unique only to a specific

(device_id, pointer_id) pair.

uint32_t & interaction_id ()

An identifier of the interaction. It is unique only to a specific

(device_id, pointer_id) pair.

TouchInteractionId & interaction_id (uint32_t value)

An identifier of the interaction. It is unique only to a specific

(device_id, pointer_id) pair.

void TouchInteractionId (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalStructCodingTraits