Schnittstelle DropTargetAsync.OnDragEnter

Umschließende Klasse:
DropTargetAsync
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface DropTargetAsync.OnDragEnter
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    int
    onDragEnter(Drop drop, double x, double y)
    Emitted on the drop site when the pointer enters the widget.
  • Methodendetails

    • 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.
      Parameter:
      drop - the `GdkDrop`
      x - the x coordinate of the current pointer position
      y - the y coordinate of the current pointer position
      Gibt zurück:
      Preferred action for this drag operation.