# IPlatformDragSource

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/input/platform/trait-iplatformdragsource/

**trait** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
trait IPlatformDragSource
```

Starts drag-and-drop operations on the platform.

This is an implementation detail of the platform backends.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/platform/i_platform_drag_source.rs#L7)

## Members

- [`do_drag_drop_async`](#function-do_drag_drop_async)

<a id="function-do_drag_drop_async"></a>

### do_drag_drop_async

```rust
fn do_drag_drop_async(self: &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.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/platform/i_platform_drag_source.rs#L10)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
