Interface DragSource.OnDragCancel

Enclosing class:
DragSource
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 DragSource.OnDragCancel
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onDragCancel(Drag drag, int reason)
    Emitted on the drag source when a drag has failed.
  • Method Details

    • onDragCancel

      boolean onDragCancel(@Nonnull Drag drag, int reason)
      Emitted on the drag source when a drag has failed.

      The signal handler may handle a failed drag operation based on
      the type of error. It should return %TRUE if the failure has been handled
      and the default "drag operation failed" animation should not be shown.
      Parameters:
      drag - the `GdkDrag` object
      reason - information on why the drag failed
      Returns:
      %TRUE if the failed drag operation has been already handled