DropPackage

An opaque structure representing dropped data. It contains private, platform-specific data that your drop function should simply forward.

This is not yet stable and may break in future versions without notice.

Members

Functions

availableFormats
DraggableData.FormatId[] availableFormats()

Lists the available formats as magic numbers. You should compare these against looked-up formats (see DraggableData.getFormatId) you know you support and can understand the passed data.

getData
void getData(DragAndDropAction acceptedAction, DraggableData.FormatId format, void delegate(scope ubyte[] data) dg)

Gets data from the drop and optionally accepts it.

See Also

Meta

History

Added February 19, 2021