Namespaces
Enumerations
enum DeviceType
| Name | Value |
|---|---|
| kTouch | 1u |
| kMouse | 2u |
A characterization of a device that issues pointer event streams.
Defined at line 19 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/cpp/fidl/fuchsia.ui.pointerinjector/cpp/common_types.h
enum DispatchPolicy
| Name | Value |
|---|---|
| kExclusiveTarget | 1u |
| kTopHitAndAncestorsInTarget | 2u |
| kMouseHoverAndLatchInTarget | 3u |
A specification of the UI clients that may have injected events dispatched
to them in an |Target|. One is specified in |Config|.
A useful concept is "latching", where one or more clients may start
receiving the pointer event stream, prior to assignment of stream ownership.
After ownership is assigned (e.g., through a gesture disambiguation
protocol), non-owning clients have their latch terminated -- they stop
receiving the pointer event stream.
- A client's latch does not itself confer stream ownership (receiving the
entire pointer event stream); gesture disambiguation or device termination
may prematurely end the stream dispatched to that client.
- It's possible for a client to latch while hidden from the user (i.e.,
manipulate a surface that is invisible to the user), where the occluding
surface is owned by a client outside of |Target|. Conversely, these
occluding clients cannot latch, because latched clients must be in
|Target|'s view tree.
Defined at line 60 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/cpp/fidl/fuchsia.ui.pointerinjector/cpp/common_types.h
enum EventPhase
| Name | Value |
|---|---|
| kAdd | 1u |
| kChange | 2u |
| kRemove | 3u |
| kCancel | 4u |
The possible states of a pointer event stream's state machine.
A typical pointer will move through this state machine:
ADD - CHANGE* - REMOVE
Defined at line 128 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/cpp/fidl/fuchsia.ui.pointerinjector/cpp/common_types.h