Records

Functions

  • void InitializeStartingGestureContext (const fuchsia::ui::pointer::augment::TouchEventWithLocalHit & event, GestureContext * gesture_context)

    Initializes a GestureContext given the first event.

    Defined at line 67 of file ../../src/ui/a11y/lib/gesture_manager/gesture_util_v2/util.cc

  • void UpdateGestureContext (const fuchsia::ui::pointer::augment::TouchEventWithLocalHit & event, bool pointer_on_screen, GestureContext * gesture_context)

    Updates the location of a pointer given its most recent event.

    Defined at line 91 of file ../../src/ui/a11y/lib/gesture_manager/gesture_util_v2/util.cc

  • uint32_t NumberOfFingersOnScreen (const GestureContext & gesture_context)

    Returns number of pointers currently in contact with screen.

    Defined at line 113 of file ../../src/ui/a11y/lib/gesture_manager/gesture_util_v2/util.cc

  • bool FingerIsOnScreen (const GestureContext & gesture_context, uint32_t pointer_id)

    Returns true if finger is in contact with screen and false otherwise.

    Defined at line 124 of file ../../src/ui/a11y/lib/gesture_manager/gesture_util_v2/util.cc

  • void ResetGestureContext (GestureContext * gesture_context)

    Resets GestureContext fields to default values.

    Defined at line 132 of file ../../src/ui/a11y/lib/gesture_manager/gesture_util_v2/util.cc

  • bool ValidateTouchEvent (const GestureContext & gesture_context, const fuchsia::ui::pointer::augment::TouchEventWithLocalHit & event)

    Helper function to check if essential fields(like event time, device id, pointer id and ndc

    point) are present in the touch event for the current gesture. It also makes sure that device

    id and pointer id has not changed for the gesture.

    Defined at line 138 of file ../../src/ui/a11y/lib/gesture_manager/gesture_util_v2/util.cc

  • bool TouchEventIsValidTap (const GestureContext & gesture_context, const fuchsia::ui::pointer::augment::TouchEventWithLocalHit & event)

    Helper function to check if the provided touch event is valid for current tap gesture being

    performed, by verifying the move threshold.

    Defined at line 151 of file ../../src/ui/a11y/lib/gesture_manager/gesture_util_v2/util.cc

  • float SquareDistanceBetweenPoints (::fuchsia::math::PointF a::fuchsia::math::PointF b)

    Returns the square of the distance between points a and b.

    Defined at line 170 of file ../../src/ui/a11y/lib/gesture_manager/gesture_util_v2/util.cc