Interface DragSource.OnDragBegin

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

    Modifier and Type
    Method
    Description
    void
    Emitted on the drag source when a drag is started.
  • Method Details

    • onDragBegin

      void onDragBegin(@Nonnull Drag drag)
      Emitted on the drag source when a drag is started.

      It can be used to e.g. set a custom drag icon with
      [method@Gtk.DragSource.set_icon].
      Parameters:
      drag - the `GdkDrag` object