Struct DropEvent¶
Defined in File slint_builtin_structs.h
Struct Documentation¶
-
struct DropEvent¶
This structure is passed to the callbacks of the
DropAreaelement.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 everyDragMove. The target’scan-dropcallback can return this to honor the user’s modifier choice, or override with any other allowed action.
-
DataTransfer data¶