class MousePointerSample

Defined at line 836 of file fidling/gen/sdk/fidl/fuchsia.ui.pointer/fuchsia.ui.pointer/cpp/fidl/fuchsia.ui.pointer/cpp/wire_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

bool IsEmpty ()

Returns whether no field is set.

bool HasUnknownData ()

Returns whether the table references unknown fields.

::fidl::WireTableBuilder< ::fuchsia_ui_pointer::wire::MousePointerSample> Builder (::fidl::AnyArena & arena)

Return a builder that by defaults allocates of an arena.

::fidl::WireTableExternalBuilder< ::fuchsia_ui_pointer::wire::MousePointerSample> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_ui_pointer::wire::MousePointerSample>> frame)

Return a builder that relies on explicitly allocating |fidl::ObjectView|s.

void MousePointerSample ()

Defined at line 838 of file fidling/gen/sdk/fidl/fuchsia.ui.pointer/fuchsia.ui.pointer/cpp/fidl/fuchsia.ui.pointer/cpp/wire_types.h

void MousePointerSample (const MousePointerSample & other)

Defined at line 839 of file fidling/gen/sdk/fidl/fuchsia.ui.pointer/fuchsia.ui.pointer/cpp/fidl/fuchsia.ui.pointer/cpp/wire_types.h

bool has_position_in_viewport ()
MousePointerSample & operator= (const MousePointerSample & other)

Defined at line 840 of file fidling/gen/sdk/fidl/fuchsia.ui.pointer/fuchsia.ui.pointer/cpp/fidl/fuchsia.ui.pointer/cpp/wire_types.h

void MousePointerSample (MousePointerSample && other)

Defined at line 841 of file fidling/gen/sdk/fidl/fuchsia.ui.pointer/fuchsia.ui.pointer/cpp/fidl/fuchsia.ui.pointer/cpp/wire_types.h

uint32_t & device_id ()

An identifier for the mouse device that issues a mouse event stream.

Required.

bool has_device_id ()
MousePointerSample & operator= (MousePointerSample && other)

Defined at line 842 of file fidling/gen/sdk/fidl/fuchsia.ui.pointer/fuchsia.ui.pointer/cpp/fidl/fuchsia.ui.pointer/cpp/wire_types.h

::fidl::Array<float, 2> & position_in_viewport ()

The position of this event, in the viewport's coordinate system.

Required.

int64_t & scroll_v ()

Relative vertical scrolling displacement by detent.

bool has_scroll_v ()
int64_t & scroll_h ()

Relative horizontal scrolling displacement by detent.

bool has_scroll_h ()
::fidl::VectorView<uint8_t> & pressed_buttons ()

Identifiers of currently pressed buttons.

bool has_pressed_buttons ()
::fidl::Array<float, 2> & relative_motion ()

The relative movement performed, independent of the viewport's

coordinate system.

bool has_relative_motion ()
double & scroll_v_physical_pixel ()

Recommended vertical scrolling displacement by physical pixel, it is

computed with accelerator, detent / mm to pixel ratio, etc.

bool has_scroll_v_physical_pixel ()
double & scroll_h_physical_pixel ()

Recommended horizontal scrolling displacement by physical pixel, it

is computed with accelerator, detent / mm to pixel ratio, etc.

bool has_scroll_h_physical_pixel ()
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.

bool has_is_precision_scroll ()
void ~MousePointerSample ()

Defined at line 844 of file fidling/gen/sdk/fidl/fuchsia.ui.pointer/fuchsia.ui.pointer/cpp/fidl/fuchsia.ui.pointer/cpp/wire_types.h

Friends

class WireTableBaseBuilder
class WireTableBaseBuilder