Interface Gesture.OnBegin

Enclosing class:
Gesture
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Gesture.OnBegin
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Emitted when the gesture is recognized.
  • Method Details

    • onBegin

      void onBegin(@Nullable EventSequence sequence)
      Emitted when the gesture is recognized.

      This means the number of touch sequences matches
      [property@Gtk.Gesture:n-points].

      Note: These conditions may also happen when an extra touch
      (eg. a third touch on a 2-touches gesture) is lifted, in that
      situation @sequence won't pertain to the current set of active
      touches, so don't rely on this being true.
      Parameters:
      sequence - the `GdkEventSequence` that made the gesture to be recognized