Skip to main content

Module natural

Module natural 

Source

Structs§

Config
A specification for an injector |Device|.
DeviceInjectRequest
Event
PointerSample
A description of each sampled data point for a pointer device.
RegistryRegisterRequest
Viewport
A rectangular region that directs injected events into a target.

Enums§

Context
The region from which injection is attempted for injected events. As the context, it serves two purposes: (1) Scoping. It confirms the |Device|’s authority to inject pointer events on the specified target. Specifically, the context must be a view-tree ancestor of the target. (2) Coordinate System. It provides the reference coordinate system to define the viewport’s position and size, relative to the target.
Data
A selection of FIFO data sent over the channel. Each data may have a different issuance policy.
DeviceType
A characterization of a device that issues pointer event streams.
DispatchPolicy
A specification of the UI clients that may have injected events dispatched to them in an |Target|. One is specified in |Config|.
EventPhase
The possible states of a pointer event stream’s state machine.
Target
The region in which dispatch is attempted for injected events. The particular dispatch policy is specified in |Config|.

Type Aliases§

Extents
A floating-point pair of points, representing minimal and maximal extents.
Mat3
A floating-point 3x3 matrix.
Point2
A floating-point two-dimensional point.
RelativeMotion
The relative motion performed by a mouse device.
RelativeMotionRange
The valid values of relative motion for a mouse device.