# DragDropDevice

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/input/struct-dragdropdevice/

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

```rust
struct DragDropDevice
```

The input device that turns the raw drag events of the platform into
the routed drag-and-drop events of [`DragDrop`](/docs/0.5.0/api/ferroui-base/input/struct-dragdrop/).

This is an implementation detail of the platform backends.

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

## Members

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

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

### instance

```rust
fn instance() -> Rc<DragDropDevice>
```

The drag-and-drop device of the current thread.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`
- [`IInputDevice`](/docs/0.5.0/api/ferroui-base/input/trait-iinputdevice/)
- [`IDragDropDevice`](/docs/0.5.0/api/ferroui-base/input/raw/trait-idragdropdevice/)

## Availability

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