Interface DragSource.OnPrepare

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

    Modifier and Type
    Method
    Description
    onPrepare(double x, double y)
    Emitted when a drag is about to be initiated.
  • Method Details

    • onPrepare

      ContentProvider onPrepare(double x, double y)
      Emitted when a drag is about to be initiated.

      It returns the `GdkContentProvider` to use for the drag that is about
      to start. The default handler for this signal returns the value of
      the [property@Gtk.DragSource:content] property, so if you set up that
      property ahead of time, you don't need to connect to this signal.
      Parameters:
      x - the X coordinate of the drag starting point
      y - the Y coordinate fo the drag starting point
      Returns:
      a `GdkContentProvider`