Enumerations

enum GestureResponse
Name Value
kYes 0
kYesPrioritize 1
kMaybe 2
kMaybePrioritize 3
kMaybeSuppress 4
kMaybePrioritizeSuppress 5
kHold 6
kHoldSuppress 7
kNo 8
kUndefined 9

Plain enum since it's used to index into a matrix.

Defined at line 17 of file ../../src/ui/scenic/lib/input/gesture_contender.h

enum Phase
Name Value
kInvalid 0
kAdd 1
kChange 2
kRemove 3
kCancel 4

Possible states the pointer can be in.

Defined at line 22 of file ../../src/ui/scenic/lib/input/internal_pointer_event.h

Records

Functions

  • StreamId NewStreamId ()

    Defined at line 9 of file ../../src/ui/scenic/lib/input/stream_id.cc

  • std::pair<float, float> ReversePointerTraceHACK (trace_flow_id_t trace_id)

    Defined at line 16 of file ../../src/ui/scenic/lib/input/helper.cc

  • fuchsia::ui::input::PointerEventPhase InternalPhaseToGfxPhase (Phase phase)

    For converting between phase enum types.

    No support for HOVER phase.

    Defined at line 25 of file ../../src/ui/scenic/lib/input/helper.cc

  • template <typename T>
    ColumnMajorMat3Array GetDestinationFromViewportTransform (const T & event, zx_koid_t destination, const view_tree::Snapshot & snapshot)

    Returns the 2D-transform from the viewport space of |event| to the destination view space as

    a mat3 in column-major array form.

    Prereq: |destination| must exist in the |snapshot|.

    Defined at line 30 of file ../../src/ui/scenic/lib/input/helper.h

  • fuchsia::ui::input::PointerEvent InternalTouchEventToGfxPointerEvent (const InternalTouchEvent & event, fuchsia::ui::input::PointerEventType type, uint64_t trace_id)

    Turns an InternalTouchEvent into a gfx pointer event.

    Does not support HOVER events.

    Defined at line 41 of file ../../src/ui/scenic/lib/input/helper.cc

  • template <typename T>
    T EventWithReceiverFromViewportTransform (T eventzx_koid_t receiverconst view_tree::Snapshot & snapshot)

    Returns the |event| with a new |receiver_from_viewport_transform| set on the viewport.

    Defined at line 42 of file ../../src/ui/scenic/lib/input/helper.h