class Config
Defined at line 560 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
A specification for an injector |Device|.
All fields required.
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
const uint32_t & device_id ()
An identifier for the pointer device that issues pointer event streams.
Defined at line 567 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
bool has_device_id ()
Defined at line 571 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
uint32_t * mutable_device_id ()
An identifier for the pointer device that issues pointer event streams.
Defined at line 576 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
void clear_device_id ()
Defined at line 584 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
const ::fuchsia::ui::pointerinjector::DeviceType & device_type ()
A characterization of the pointer device.
Defined at line 593 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
bool has_device_type ()
Defined at line 597 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
::fuchsia::ui::pointerinjector::DeviceType * mutable_device_type ()
A characterization of the pointer device.
Defined at line 602 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
void clear_device_type ()
Defined at line 610 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
const ::fuchsia::ui::pointerinjector::Context & context ()
The scope and coordinate system of the injector |Device|.
Note: To avoid circular injection scenarios, |context| must be a
strict ancestor of |target|.
Defined at line 622 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
bool has_context ()
Defined at line 626 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
::fuchsia::ui::pointerinjector::Context * mutable_context ()
The scope and coordinate system of the injector |Device|.
Note: To avoid circular injection scenarios, |context| must be a
strict ancestor of |target|.
Defined at line 634 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
void clear_context ()
Defined at line 642 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
bool has_target ()
Defined at line 658 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
::fuchsia::ui::pointerinjector::Target * mutable_target ()
The region where dispatch is attempted for injected events.
Note: To avoid circular injection scenarios, |target| must be a strict
descendant of |context|.
Defined at line 666 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
void clear_target ()
Defined at line 674 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
bool has_viewport ()
Defined at line 688 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
::fuchsia::ui::pointerinjector::Viewport * mutable_viewport ()
The initial viewport for injected events. Subsequent modifications to
the viewport can also be sent synchronously with injected events.
Defined at line 694 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
void clear_viewport ()
Defined at line 702 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
const ::fuchsia::ui::pointerinjector::DispatchPolicy & dispatch_policy ()
A specification of the UI clients in |target| that may have injected
events dispatched to them.
For example, if |dispatch_policy| is |EXCLUSIVE|, then only |target| may
have injected events dispatched to it, regardless of other factors, such
as surface occlusion by clients inside and outside of |target|.
Defined at line 716 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
bool has_dispatch_policy ()
Defined at line 720 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
::fuchsia::ui::pointerinjector::DispatchPolicy * mutable_dispatch_policy ()
A specification of the UI clients in |target| that may have injected
events dispatched to them.
For example, if |dispatch_policy| is |EXCLUSIVE|, then only |target| may
have injected events dispatched to it, regardless of other factors, such
as surface occlusion by clients inside and outside of |target|.
Defined at line 730 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
void clear_dispatch_policy ()
Defined at line 738 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
const ::fuchsia::input::report::Axis & scroll_v_range ()
Range of vertical scroll values issued by the device.
Defined at line 747 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
bool has_scroll_v_range ()
Defined at line 751 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
::fuchsia::input::report::Axis * mutable_scroll_v_range ()
Range of vertical scroll values issued by the device.
Defined at line 756 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
void clear_scroll_v_range ()
Defined at line 764 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
const ::fuchsia::input::report::Axis & scroll_h_range ()
Range of horizontal scroll values issued by the device.
Defined at line 773 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
bool has_scroll_h_range ()
Defined at line 777 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
::fuchsia::input::report::Axis * mutable_scroll_h_range ()
Range of horizontal scroll values issued by the device.
Defined at line 782 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
void clear_scroll_h_range ()
Defined at line 790 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
const ::std::vector<uint8_t> & buttons ()
Mouse button identifiers issued by the device, in priority order.
The priority order of mouse buttons is a policy choice enacted by the injector.
This priority order is conveyed verbatim to UI clients via
[`fuchsia.ui.pointer.MouseDeviceInfo.buttons`], so button priority is shared consistently
between multiple UI clients. For example, to swap the left-side (0x1) and right-side (0x2)
physical buttons from their traditional roles of primary and secondary mouse buttons, the
injector can specify [0x2, 0x1, ... ] in this [`buttons`] vector.
Note that preserving the physical button ID is also a policy choice. If preserved, a
discerning UI client can distinguish between the ground truth (which physical button was
pressed) versus the desired interpretation (what priority does that physical button have, on
the current system).
Defined at line 811 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
bool has_buttons ()
Defined at line 815 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
::std::vector<uint8_t> * mutable_buttons ()
Mouse button identifiers issued by the device, in priority order.
The priority order of mouse buttons is a policy choice enacted by the injector.
This priority order is conveyed verbatim to UI clients via
[`fuchsia.ui.pointer.MouseDeviceInfo.buttons`], so button priority is shared consistently
between multiple UI clients. For example, to swap the left-side (0x1) and right-side (0x2)
physical buttons from their traditional roles of primary and secondary mouse buttons, the
injector can specify [0x2, 0x1, ... ] in this [`buttons`] vector.
Note that preserving the physical button ID is also a policy choice. If preserved, a
discerning UI client can distinguish between the ground truth (which physical button was
pressed) versus the desired interpretation (what priority does that physical button have, on
the current system).
Defined at line 832 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
void clear_buttons ()
Defined at line 840 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
const ::std::array< ::fuchsia::input::report::Axis, 2> & relative_motion_range ()
Range of X and Y motion by a mouse device.
Defined at line 849 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
bool has_relative_motion_range ()
Defined at line 853 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
::std::array< ::fuchsia::input::report::Axis, 2> * mutable_relative_motion_range ()
Range of X and Y motion by a mouse device.
Defined at line 858 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
void clear_relative_motion_range ()
Defined at line 866 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
Config & set_device_id (uint32_t _value)
Config & set_device_type (::fuchsia::ui::pointerinjector::DeviceType _value)
Config & set_context (::fuchsia::ui::pointerinjector::Context _value)
Config & set_target (::fuchsia::ui::pointerinjector::Target _value)
Config & set_viewport (::fuchsia::ui::pointerinjector::Viewport _value)
Config & set_dispatch_policy (::fuchsia::ui::pointerinjector::DispatchPolicy _value)
Config & set_scroll_v_range (::fuchsia::input::report::Axis _value)
Config & set_scroll_h_range (::fuchsia::input::report::Axis _value)
Config & set_buttons (::std::vector<uint8_t> _value)
Config & set_relative_motion_range (::std::array< ::fuchsia::input::report::Axis, 2> _value)
void Config ()
void Config (Config && other)
const ::fuchsia::ui::pointerinjector::Target & target ()
The region where dispatch is attempted for injected events.
Note: To avoid circular injection scenarios, |target| must be a strict
descendant of |context|.
Defined at line 654 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
const ::fuchsia::ui::pointerinjector::Viewport & viewport ()
The initial viewport for injected events. Subsequent modifications to
the viewport can also be sent synchronously with injected events.
Defined at line 684 of file fidling/gen/sdk/fidl/fuchsia.ui.pointerinjector/fuchsia.ui.pointerinjector/hlcpp/fuchsia/ui/pointerinjector/cpp/fidl.h
void ~Config ()
Config & operator= (Config && other)
::std::unique_ptr<Config> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, Config * _value, size_t _offset)
zx_status_t Clone (Config * _result)