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)
  2. auto acceptDrop()
    @safe
    acceptDrop
    (
    N
    tags...
    )
    ()
    if (
    is(N : Node) &&
    allSatisfy!(isNodeTag, tags)
    )

Parameters

tags

Restrict dropped nodes to those that have the given tag.

Meta