# MoveGesture

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer-tools/struct-movegesture/

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

```rust
struct MoveGesture
```

An immutable drag start snapshot. Preview is pure geometry; commit refuses to apply a stale
gesture after source or collaboration edits have changed the authored revision.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/selection.rs#L195)

## Members

- [`begin`](#function-begin)
- [`preview`](#function-preview)
- [`commit`](#function-commit)

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

### begin

```rust
fn begin(document: &Document, nodes: &[NodeId], measurements: &BTreeMap<NodeId, Rect>, start: Point, snap: SnapSettings) -> Result<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/selection.rs#L204)

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

### preview

```rust
fn preview(self: &Self, pointer: Point) -> Result<SnapResult>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/selection.rs#L247)

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

### commit

```rust
fn commit(self: &Self, context: &LayoutContext<'_>, registry: &LayoutRegistry, pointer: Point) -> Result<Vec<Edit>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/selection.rs#L255)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`

## Availability

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