Struct DropEvent

Struct Documentation

struct DropEvent

This structure is passed to the callbacks of the DropArea element.

Public Members

DataTransfer data

The payload set on the source DragArea.

LogicalPosition position

The cursor position in the DropArea’s local coordinates.

bool allow_copy

Mirrors DragArea.allow-copy: true if the source allows the drop to copy the data.

bool allow_move

Mirrors DragArea.allow-move: true if the source allows the drop to move the data.

bool allow_link

Mirrors DragArea.allow-link: true if the source allows the drop to link to the data.

DragAction proposed_action

The action negotiated from current modifier state and the source’s preferred-action, clamped to the allowed set. Updated on every DragMove. The target’s can-drop callback can return this to honor the user’s modifier choice, or override with any other allowed action.