class PointerEvent
Defined at line 38 of file fidling/gen/sdk/fidl/fuchsia.ui.input.accessibility/fuchsia.ui.input.accessibility/cpp/fidl/fuchsia.ui.input.accessibility/cpp/natural_types.h
A PointerEvent is a privileged pointer event that has local view and global
screen coordinates as well as some metadata about the event type.
Public Methods
void PointerEvent (Storage_ storage)
bool IsEmpty ()
void PointerEvent ()
Defined at line 44 of file fidling/gen/sdk/fidl/fuchsia.ui.input.accessibility/fuchsia.ui.input.accessibility/cpp/fidl/fuchsia.ui.input.accessibility/cpp/natural_types.h
void PointerEvent (PointerEvent && )
Defined at line 45 of file fidling/gen/sdk/fidl/fuchsia.ui.input.accessibility/fuchsia.ui.input.accessibility/cpp/fidl/fuchsia.ui.input.accessibility/cpp/natural_types.h
void PointerEvent (const PointerEvent & other)
const std::optional<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.
::std::optional<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 (std::optional<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.
const std::optional<uint32_t> & device_id ()
ID of the device that captured this event.
::std::optional<uint32_t> & device_id ()
ID of the device that captured this event.
PointerEvent & device_id (std::optional<uint32_t> value)
ID of the device that captured this event.
PointerEvent & operator= (PointerEvent && )
Defined at line 46 of file fidling/gen/sdk/fidl/fuchsia.ui.input.accessibility/fuchsia.ui.input.accessibility/cpp/fidl/fuchsia.ui.input.accessibility/cpp/natural_types.h
PointerEvent & operator= (const PointerEvent & other)
bool operator== (const PointerEvent & other)
bool operator!= (const PointerEvent & other)
const std::optional<uint32_t> & pointer_id ()
ID of the pointer that identifies this event.
::std::optional<uint32_t> & pointer_id ()
ID of the pointer that identifies this event.
PointerEvent & pointer_id (std::optional<uint32_t> value)
ID of the pointer that identifies this event.
const std::optional< ::fuchsia_ui_input::PointerEventType> & type ()
Type of this event, e.g. touch, mouse, etc.
::std::optional< ::fuchsia_ui_input::PointerEventType> & type ()
Type of this event, e.g. touch, mouse, etc.
PointerEvent & type (std::optional< ::fuchsia_ui_input::PointerEventType> value)
Type of this event, e.g. touch, mouse, etc.
const std::optional< ::fuchsia_ui_input::PointerEventPhase> & phase ()
Phase of this event, e.g. add, down, etc.
::std::optional< ::fuchsia_ui_input::PointerEventPhase> & phase ()
Phase of this event, e.g. add, down, etc.
PointerEvent & phase (std::optional< ::fuchsia_ui_input::PointerEventPhase> value)
Phase of this event, e.g. add, down, etc.
const std::optional< ::fuchsia_math::PointF> & ndc_point ()
The coordinate of this pointer event in normalized device coordinates.
Normalized device coordinates have dimensions in the range [-1, 1],
with (0, 0) being the center of the device and axes aligned with the
native display.
::std::optional< ::fuchsia_math::PointF> & ndc_point ()
The coordinate of this pointer event in normalized device coordinates.
Normalized device coordinates have dimensions in the range [-1, 1],
with (0, 0) being the center of the device and axes aligned with the
native display.
PointerEvent & ndc_point (std::optional< ::fuchsia_math::PointF> value)
The coordinate of this pointer event in normalized device coordinates.
Normalized device coordinates have dimensions in the range [-1, 1],
with (0, 0) being the center of the device and axes aligned with the
native display.
const std::optional<uint64_t> & viewref_koid ()
The viewref koid of the top most view hit for this pointer event.
This field is set to `ZX_KOID_INVALID` when there is no view hit and
`local_point` is undefined.
::std::optional<uint64_t> & viewref_koid ()
The viewref koid of the top most view hit for this pointer event.
This field is set to `ZX_KOID_INVALID` when there is no view hit and
`local_point` is undefined.
PointerEvent & viewref_koid (std::optional<uint64_t> value)
The viewref koid of the top most view hit for this pointer event.
This field is set to `ZX_KOID_INVALID` when there is no view hit and
`local_point` is undefined.
const std::optional< ::fuchsia_math::PointF> & local_point ()
The point of this pointer event in local view coordinates.
::std::optional< ::fuchsia_math::PointF> & local_point ()
The point of this pointer event in local view coordinates.
PointerEvent & local_point (std::optional< ::fuchsia_math::PointF> value)
The point of this pointer event in local view coordinates.
void PointerEvent (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Friends
class MemberVisitor
class NaturalTableCodingTraits