Interface Gesture.OnCancel

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.OnCancel
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Emitted whenever a sequence is cancelled.
  • Method Details

    • onCancel

      void onCancel(@Nullable EventSequence sequence)
      Emitted whenever a sequence is cancelled.

      This usually happens on active touches when
      [method@Gtk.EventController.reset] is called on @gesture
      (manually, due to grabs...), or the individual @sequence
      was claimed by parent widgets' controllers (see
      [method@Gtk.Gesture.set_sequence_state]).

      @gesture must forget everything about @sequence as in
      response to this signal.
      Parameters:
      sequence - the `GdkEventSequence` that was cancelled