#[non_exhaustive]#[repr(C)]pub struct DropEvent {
pub data: DataTransfer,
pub position: LogicalPosition,
pub proposed_action: DragAction,
}Expand description
This structure is passed to the callbacks of the DropArea element
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.data: DataTransferThe payload set on the source DragArea.
position: LogicalPositionThe cursor position in the DropArea’s local coordinates.
proposed_action: DragActionThe 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.
Trait Implementations§
impl StructuralPartialEq for DropEvent
Auto Trait Implementations§
impl !RefUnwindSafe for DropEvent
impl !Send for DropEvent
impl !Sync for DropEvent
impl !UnwindSafe for DropEvent
impl Freeze for DropEvent
impl Unpin for DropEvent
impl UnsafeUnpin for DropEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more