# RawDragEvent

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

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

```rust
struct RawDragEvent
```

A raw drag event: a drag-and-drop operation of the platform entering,
moving over, leaving or dropping on an input root.

This is an implementation detail of the platform backends.

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

## Members

- [`new`](#function-new)
- [`location`](#function-location)
- [`set_location`](#function-set_location)
- [`data_transfer`](#function-data_transfer)
- [`effects`](#function-effects)
- [`set_effects`](#function-set_effects)
- [`type_`](#function-type_)
- [`key_modifiers`](#function-key_modifiers)

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

### new

```rust
fn new(input_device: Rc<dyn IDragDropDevice>, type_: RawDragEventType, root: Rc<dyn IInputRoot>, location: Point, data_transfer: Rc<dyn IDataTransfer>, effects: DragDropEffects, modifiers: RawInputModifiers) -> Self
```

Creates a raw drag event.

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

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

### location

```rust
fn location(self: &Self) -> Point
```

The location of the pointer, in the coordinates of the root.

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

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

### set_location

```rust
fn set_location(self: &Self, value: Point)
```

Sets the location of the pointer.

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

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

### data_transfer

```rust
fn data_transfer(self: &Self) -> &Rc<dyn IDataTransfer>
```

The data being dragged.

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

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

### effects

```rust
fn effects(self: &Self) -> DragDropEffects
```

The effects of the operation: the allowed effects when the event is
sent, the effects accepted by the target once it has been processed.

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

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

### set_effects

```rust
fn set_effects(self: &Self, value: DragDropEffects)
```

Sets the effects of the operation.

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

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

### type_

```rust
fn type_(self: &Self) -> RawDragEventType
```

The type of the event.

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

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

### key_modifiers

```rust
fn key_modifiers(self: &Self) -> KeyModifiers
```

The key modifiers held down during the event.

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

## 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>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`IRawInputEventArgs`](/docs/0.5.0/api/ferroui-base/input/raw/trait-irawinputeventargs/)

## Availability

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