Namespaces

Enumerations

enum class MouseViewStatus : uint32_t
Name Value Comments
kEntered 1u

The stream is directed towards this view.

kExited 2u

The stream is directed away from this view.

A description of mouse event stream's relationship to this view.

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

enum class EventPhase : uint32_t
Name Value Comments
kAdd 1u

The device has started tracking the pointer.

kChange 2u

The device has reported an update to the pointer state.

kRemove 3u

The device has stopped tracking the pointer.

kCancel 4u

The pointer is no longer available.

The possible states of a pointer event. These phases of events in a stream

follow a state machine that starts with the `ADD` phase, followed by zero or

more `CHANGE` phases, and finally terminates with `REMOVE` or `CANCEL`

phase.

```

ADD ---> CHANGE* -+-> REMOVE

|

+-> CANCEL

```

A finite sequence of pointer events that follows this state machine,

starting from the initial state, is called an **interaction**. A closed (or

past) interaction is one where it has reached the terminal state; 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).

When we need to group pointer events by their interaction, an 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.

For example, touch events are typically observed as a succession of

interactions, as fingers engage and disengage with the display.

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

enum class TouchInteractionStatus : uint32_t
Name Value Comments
kDenied 1u

The client has been denied ownership of the interaction.

kGranted 2u

The client has been granted ownership of the interaction.

A description of the interaction's relationship to this client.

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

enum class TouchResponseType : uint32_t
Name Value Comments
kNo 1u

The client has no further interest in this interaction; it declines
ownership of the interaction. The client will stop receiving events for
this interaction.

kMaybe 2u

The client is interested in this interaction, but needs to see more
events to decide; the client has not yet claimed ownership of this
interaction.

kMaybePrioritize 3u

The client is interested in this interaction, but needs to see more
events to decide; the client has not yet claimed ownership of the
interaction. During ownership resolution, it exerts its priority over
lower-priority "maybe" claims, but always loses to a "yes" claim.

kMaybeSuppress 4u

The client is interested in this interaction, but needs to see more
events to decide; the client has not yet claimed ownership of the
interaction. Moreover, it suppresses lower-priority claims that try to
resolve interaction ownership.

kMaybePrioritizeSuppress 5u

The client is interested in this interaction, but needs to see more
events to decide; the client has not yet claimed ownership of the
interaction. Moreover, it suppresses lower-priority claims that try to
resolve interaction ownership. During ownership resolution, it exerts
its priority over lower-priority "maybe" claims, but always loses to a
"yes" claim.

kHold 6u

The client is interested in this interaction, but needs to see a
subsequent interaction to decide; the client has not yet claimed
ownership of this interaction. It prevents ownership resolution when the
interaction closes.

kHoldSuppress 7u

The client is interested in this interaction, but needs to see a
subsequent interaction to decide; the client has not yet claimed
ownership of this interaction. It prevents ownership resolution when the
interaction closes. Moreover, it suppresses lower-priority claims that
try to resolve interaction ownership.

kYes 8u

The client wishes exclusive access to the remaining events in this
interaction; it claims ownership of this interaction (but that claim may
be granted or denied). During ownership resolution, it yields its
priority to lower-priority "yes" claims.

kYesPrioritize 9u

The client wishes exclusive access to the remaining events in this
interaction; it claims ownership of this interaction (but that claim may
be granted or denied). During ownership resolution, it exerts its
priority over lower-priority "yes" claims.

The possible interaction dispositions that a client can respond with to a

given |TouchPointerSample|. Used as part of a gesture disambiguation scheme.

The responses are based on the idea of an ownership claim on a interaction.

Clients may assert a claim of ownership on an open interaction, but only one

client's claim is granted by the server; other clients' claims are denied.

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

Records

Functions

  • std::ostream & operator<< (std::ostream & os, const ::fuchsia_ui_pointer::MouseDeviceInfo & value)
  • std::ostream & operator<< (std::ostream & os, const ::fuchsia_ui_pointer::MouseViewStatus & value)
  • std::ostream & operator<< (std::ostream & os, const ::fuchsia_ui_pointer::MouseEventStreamInfo & value)
  • std::ostream & operator<< (std::ostream & os, const ::fuchsia_ui_pointer::EventPhase & value)
  • std::ostream & operator<< (std::ostream & os, const ::fuchsia_ui_pointer::TouchDeviceInfo & value)
  • std::ostream & operator<< (std::ostream & os, const ::fuchsia_ui_pointer::TouchInteractionId & value)
  • std::ostream & operator<< (std::ostream & os, const ::fuchsia_ui_pointer::TouchInteractionStatus & value)
  • std::ostream & operator<< (std::ostream & os, const ::fuchsia_ui_pointer::TouchInteractionResult & value)
  • std::ostream & operator<< (std::ostream & os, const ::fuchsia_ui_pointer::TouchResponseType & value)
  • std::ostream & operator<< (std::ostream & os, const ::fuchsia_ui_pointer::TouchResponse & value)
  • std::ostream & operator<< (std::ostream & os, const ::fuchsia_ui_pointer::TouchSourceWatchRequest & value)
  • std::ostream & operator<< (std::ostream & os, const ::fuchsia_ui_pointer::TouchSourceUpdateResponseRequest & value)
  • std::ostream & operator<< (std::ostream & os, const ::fuchsia_ui_pointer::MousePointerSample & value)
  • std::ostream & operator<< (std::ostream & os, const ::fuchsia_ui_pointer::TouchPointerSample & value)
  • std::ostream & operator<< (std::ostream & os, const ::fuchsia_ui_pointer::Rectangle & value)
  • std::ostream & operator<< (std::ostream & os, const ::fuchsia_ui_pointer::ViewParameters & value)
  • std::ostream & operator<< (std::ostream & os, const ::fuchsia_ui_pointer::MouseEvent & value)
  • std::ostream & operator<< (std::ostream & os, const ::fuchsia_ui_pointer::MouseSourceWatchResponse & value)
  • std::ostream & operator<< (std::ostream & os, const ::fuchsia_ui_pointer::TouchEvent & value)
  • std::ostream & operator<< (std::ostream & os, const ::fuchsia_ui_pointer::TouchSourceWatchResponse & value)