class PointerEvent

Defined at line 497 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/natural_types.h

Pointers represent raw data about the user's interaction with the screen.

The state transitions should be as follows:

ADD (-> HOVER) -> DOWN -> MOVE -> UP (-> HOVER) -> REMOVE

At any point after the initial ADD, a transition to CANCEL is also possible.

Public Methods

void PointerEvent (Storage_ storage)
void PointerEvent (uint64_t event_time, uint32_t device_id, uint32_t pointer_id, ::fuchsia_ui_input::PointerEventType type, ::fuchsia_ui_input::PointerEventPhase phase, float x, float y, float radius_major, float radius_minor, uint32_t buttons)
void PointerEvent ()

Default constructs a |PointerEvent| only if all of its members are default constructible.

Defined at line 507 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/natural_types.h

void PointerEvent (PointerEvent && )

Defined at line 510 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/natural_types.h

void PointerEvent (const PointerEvent & other)
PointerEvent & operator= (PointerEvent && )

Defined at line 511 of file fidling/gen/sdk/fidl/fuchsia.ui.input/fuchsia.ui.input/cpp/fidl/fuchsia.ui.input/cpp/natural_types.h

PointerEvent & operator= (const PointerEvent & other)
bool operator== (const PointerEvent & other)
bool operator!= (const PointerEvent & other)
uint64_t event_time ()

Time the event was delivered. The time is in nanoseconds and corresponds

to the monotonic time as determined by the zx_clock_get_monotonic syscall.

uint64_t & event_time ()

Time the event was delivered. The time is in nanoseconds and corresponds

to the monotonic time as determined by the zx_clock_get_monotonic syscall.

PointerEvent & event_time (uint64_t value)

Time the event was delivered. The time is in nanoseconds and corresponds

to the monotonic time as determined by the zx_clock_get_monotonic syscall.

uint32_t device_id ()
uint32_t & device_id ()
PointerEvent & device_id (uint32_t value)

Setter for device_id.

uint32_t pointer_id ()
uint32_t & pointer_id ()
PointerEvent & pointer_id (uint32_t value)

Setter for pointer_id.

::fuchsia_ui_input::PointerEventType type ()
::fuchsia_ui_input::PointerEventType & type ()
PointerEvent & type (::fuchsia_ui_input::PointerEventType value)

Setter for type.

::fuchsia_ui_input::PointerEventPhase phase ()
::fuchsia_ui_input::PointerEventPhase & phase ()
PointerEvent & phase (::fuchsia_ui_input::PointerEventPhase value)

Setter for phase.

float x ()

`x` and `y` are in the coordinate system of the View.

float & x ()

`x` and `y` are in the coordinate system of the View.

PointerEvent & x (float value)

`x` and `y` are in the coordinate system of the View.

float y ()
float & y ()
PointerEvent & y (float value)

Setter for y.

float radius_major ()
float & radius_major ()
PointerEvent & radius_major (float value)

Setter for radius_major.

float radius_minor ()
float & radius_minor ()
PointerEvent & radius_minor (float value)

Setter for radius_minor.

uint32_t buttons ()

Currently pressed buttons as defined the kButton constants such as

`kMousePrimaryButton`

uint32_t & buttons ()

Currently pressed buttons as defined the kButton constants such as

`kMousePrimaryButton`

PointerEvent & buttons (uint32_t value)

Currently pressed buttons as defined the kButton constants such as

`kMousePrimaryButton`

void PointerEvent (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalStructCodingTraits