Interface DropTargetAsync.OnDragEnter

Enclosing class:
DropTargetAsync
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 DropTargetAsync.OnDragEnter
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    onDragEnter(Drop drop, double x, double y)
    Emitted on the drop site when the pointer enters the widget.
  • Method Details

    • onDragEnter

      int onDragEnter(@Nonnull Drop drop, double x, double y)
      Emitted on the drop site when the pointer enters the widget.

      It can be used to set up custom highlighting.
      Parameters:
      drop - the `GdkDrop`
      x - the x coordinate of the current pointer position
      y - the y coordinate of the current pointer position
      Returns:
      Preferred action for this drag operation.