Skip to main content

IPlatformDragSource

Trait IPlatformDragSource 

Source
pub trait IPlatformDragSource {
    // Required method
    fn do_drag_drop_async(
        &self,
        trigger_event: &PointerPressedEventArgs,
        data_transfer: Rc<dyn IDataTransfer>,
        allowed_effects: DragDropEffects,
    ) -> LocalBoxFuture<DragDropEffects>;
}
Expand description

Starts drag-and-drop operations on the platform.

This is an implementation detail of the platform backends.

Required Methods§

Source

fn do_drag_drop_async( &self, trigger_event: &PointerPressedEventArgs, data_transfer: Rc<dyn IDataTransfer>, allowed_effects: DragDropEffects, ) -> LocalBoxFuture<DragDropEffects>

Starts a drag-and-drop operation with the given data and returns a future that resolves to the effect of the operation when it ends.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§