Class FileDropEvent

java.lang.Object
limn.scene.event.InputEvent
limn.scene.event.FileDropEvent

public final class FileDropEvent extends InputEvent
Files dragged from the OS and dropped on the window. Dispatched bubbling from the widget under the pointer (like a mouse event): a drop target handles it in Widget.onFileDrop and InputEvent.consume()s; an unconsumed drop bubbles up to ancestors and is finally ignored. Coordinates are in scene space.
  • Constructor Details

    • FileDropEvent

      public FileDropEvent(List<Path> paths, float x, float y)
      Files dropped at a point, in the receiving widget's coordinates.
  • Method Details

    • paths

      public List<Path> paths()
      The dropped files, in platform order (never empty).
    • x

      public float x()
      Drop x, in the receiving widget's coordinates.
    • y

      public float y()
      Drop y, in the receiving widget's coordinates.
    • toString

      public String toString()
      Overrides:
      toString in class Object