acceptDrop

Make a Frame node accept nodes via drag & drop.

Note: Currently, not all Frames support drag & drop. Using it for nodes that doesn't explicitly state support might cause undefined behavior.

  1. auto acceptDrop(Selector selector)
    @safe
    acceptDrop
    (
    tags...
    )
    (
    Selector selector = Selector.init
    )
    if (
    allSatisfy!(isNodeTag, tags)
    )
  2. auto acceptDrop()

Parameters

tags

Restrict dropped nodes to those that have the given tag.

selector Selector

Selector to limit nodes that the frame accepts. Optional — Tags are often enough.

Meta