class MousePointerSample
Defined at line 683 of file fidling/gen/sdk/fidl/fuchsia.ui.pointer/fuchsia.ui.pointer/cpp/fidl/fuchsia.ui.pointer/cpp/natural_types.h
A description of each sampled data point in a mouse event stream.
`MousePointerSample` may bundle multiple state changes into one event.
For example, if user scrolls mouse wheel and presses the left buttton
down at the same time, client may receive scroll and button state changes
together in 1 event, or receive button change and scroll change in
separate events.
Public Methods
void MousePointerSample (Storage_ storage)
void MousePointerSample ()
Defined at line 689 of file fidling/gen/sdk/fidl/fuchsia.ui.pointer/fuchsia.ui.pointer/cpp/fidl/fuchsia.ui.pointer/cpp/natural_types.h
void MousePointerSample (MousePointerSample && )
Defined at line 690 of file fidling/gen/sdk/fidl/fuchsia.ui.pointer/fuchsia.ui.pointer/cpp/fidl/fuchsia.ui.pointer/cpp/natural_types.h
void MousePointerSample (const MousePointerSample & other)
MousePointerSample & operator= (MousePointerSample && )
Defined at line 691 of file fidling/gen/sdk/fidl/fuchsia.ui.pointer/fuchsia.ui.pointer/cpp/fidl/fuchsia.ui.pointer/cpp/natural_types.h
MousePointerSample & operator= (const MousePointerSample & other)
bool operator== (const MousePointerSample & other)
bool operator!= (const MousePointerSample & other)
bool IsEmpty ()
const std::optional<uint32_t> & device_id ()
An identifier for the mouse device that issues a mouse event stream.
Required.
::std::optional<uint32_t> & device_id ()
An identifier for the mouse device that issues a mouse event stream.
Required.
MousePointerSample & device_id (std::optional<uint32_t> value)
An identifier for the mouse device that issues a mouse event stream.
Required.
const std::optional< ::std::array<float, 2>> & position_in_viewport ()
The position of this event, in the viewport's coordinate system.
Required.
::std::optional< ::std::array<float, 2>> & position_in_viewport ()
The position of this event, in the viewport's coordinate system.
Required.
MousePointerSample & position_in_viewport (std::optional< ::std::array<float, 2>> value)
The position of this event, in the viewport's coordinate system.
Required.
const std::optional<int64_t> & scroll_v ()
Relative vertical scrolling displacement by detent.
::std::optional<int64_t> & scroll_v ()
Relative vertical scrolling displacement by detent.
MousePointerSample & scroll_v (std::optional<int64_t> value)
Relative vertical scrolling displacement by detent.
const std::optional<int64_t> & scroll_h ()
Relative horizontal scrolling displacement by detent.
::std::optional<int64_t> & scroll_h ()
Relative horizontal scrolling displacement by detent.
MousePointerSample & scroll_h (std::optional<int64_t> value)
Relative horizontal scrolling displacement by detent.
const std::optional< ::std::vector<uint8_t>> & pressed_buttons ()
Identifiers of currently pressed buttons.
::std::optional< ::std::vector<uint8_t>> & pressed_buttons ()
Identifiers of currently pressed buttons.
MousePointerSample & pressed_buttons (std::optional< ::std::vector<uint8_t>> value)
Identifiers of currently pressed buttons.
const std::optional< ::std::array<float, 2>> & relative_motion ()
The relative movement performed, independent of the viewport's
coordinate system.
::std::optional< ::std::array<float, 2>> & relative_motion ()
The relative movement performed, independent of the viewport's
coordinate system.
MousePointerSample & relative_motion (std::optional< ::std::array<float, 2>> value)
The relative movement performed, independent of the viewport's
coordinate system.
const std::optional<double> & scroll_v_physical_pixel ()
Recommended vertical scrolling displacement by physical pixel, it is
computed with accelerator, detent / mm to pixel ratio, etc.
::std::optional<double> & scroll_v_physical_pixel ()
Recommended vertical scrolling displacement by physical pixel, it is
computed with accelerator, detent / mm to pixel ratio, etc.
MousePointerSample & scroll_v_physical_pixel (std::optional<double> value)
Recommended vertical scrolling displacement by physical pixel, it is
computed with accelerator, detent / mm to pixel ratio, etc.
const std::optional<double> & scroll_h_physical_pixel ()
Recommended horizontal scrolling displacement by physical pixel, it
is computed with accelerator, detent / mm to pixel ratio, etc.
::std::optional<double> & scroll_h_physical_pixel ()
Recommended horizontal scrolling displacement by physical pixel, it
is computed with accelerator, detent / mm to pixel ratio, etc.
MousePointerSample & scroll_h_physical_pixel (std::optional<double> value)
Recommended horizontal scrolling displacement by physical pixel, it
is computed with accelerator, detent / mm to pixel ratio, etc.
const std::optional<bool> & is_precision_scroll ()
Indicated if the scroll event is from a precision scroll device (HI_RES
mouse or touchpad). Clients may want to play interpolation animations
on non precision scroll device for smooth scrolling.
::std::optional<bool> & is_precision_scroll ()
Indicated if the scroll event is from a precision scroll device (HI_RES
mouse or touchpad). Clients may want to play interpolation animations
on non precision scroll device for smooth scrolling.
MousePointerSample & is_precision_scroll (std::optional<bool> value)
Indicated if the scroll event is from a precision scroll device (HI_RES
mouse or touchpad). Clients may want to play interpolation animations
on non precision scroll device for smooth scrolling.
void MousePointerSample (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Friends
class MemberVisitor
class NaturalTableCodingTraits