class Context
Defined at line 231 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.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 Members
static const fidl_type_t * FidlType
Public Methods
void Context ()
void ~Context ()
void Context (Context && )
Context & operator= (Context && )
Context WithView (::fuchsia::ui::views::ViewRef && )
::std::unique_ptr<Context> New ()
void Encode (::fidl::Encoder * encoder, size_t offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, Context * value, size_t offset)
zx_status_t Clone (Context * result)
bool has_invalid_tag ()
Defined at line 256 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
bool is_view ()
Defined at line 260 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
Context & set_view (::fuchsia::ui::views::ViewRef value)
::fuchsia::ui::views::ViewRef & view ()
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.
Defined at line 265 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
const ::fuchsia::ui::views::ViewRef & view ()
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.
Defined at line 273 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
::fuchsia::ui::pointerinjector::Context::Tag Which ()
Defined at line 279 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
fidl_xunion_tag_t Ordinal ()
You probably want to use Which() method instead of Ordinal(). Use Ordinal() only when you need
access to the raw integral ordinal value.
Defined at line 285 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
Enumerations
enum Tag
| Name | Value |
|---|---|
| kView | 1 |
| Invalid | ::std::numeric_limits<::fidl_union_tag_t>::max() |
Defined at line 243 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
Friends
class Equality