class Context
Defined at line 66 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/cpp/fidl/fuchsia.ui.pointerinjector/cpp/natural_types.h
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.
Public Methods
void Context (Context && other)
Context & operator= (Context && other)
::fuchsia_ui_pointerinjector::Context::Tag Which ()
Context WithView (::fuchsia_ui_views::ViewRef val)
const ::fidl::internal::UnionMemberView<1, Storage_> view ()
::fidl::internal::UnionMemberView<1, Storage_> view ()
Context & view (::fuchsia_ui_views::ViewRef value)
A Scenic view from which injection is attempted for injected events.
- This view must be connected to the scene graph for injection.
- Injected events are confined to this view and its sub-views.
void Context (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Enumerations
enum Tag
| Name | Value |
|---|---|
| kView | 1 |
TODO: share union tag types between wire
&
natural.
Defined at line 74 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/cpp/fidl/fuchsia.ui.pointerinjector/cpp/natural_types.h
Friends
class NaturalUnionCodingTraits