slint::language::DropEvent Struct
struct DropEvent;C++
#include <slint.h>C++
This structure is passed to the callbacks of the DropArea element.
Public Attributes
Section titled “Public Attributes”DataTransfer slint::language::DropEvent::data
The payload set on the source DragArea.
position
Section titled “ position”LogicalPosition slint::language::DropEvent::position
The cursor position in the DropArea’s local coordinates.
allow_copy
Section titled “ allow_copy”bool slint::language::DropEvent::allow_copy
Mirrors DragArea.allow-copy: true if the source allows the drop to copy the data.
allow_move
Section titled “ allow_move”bool slint::language::DropEvent::allow_move
Mirrors DragArea.allow-move: true if the source allows the drop to move the data.
allow_link
Section titled “ allow_link”bool slint::language::DropEvent::allow_link
Mirrors DragArea.allow-link: true if the source allows the drop to link to the data.
proposed_action
Section titled “ proposed_action”DragAction slint::language::DropEvent::proposed_action
The action negotiated from current modifier state, clamped to the allowed set; when no modifier is pressed, the first allowed of move, copy, link. 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.
© 2026 SixtyFPS GmbH