# ThumbImpl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/primitives/trait-thumbimpl/

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

```rust
trait ThumbImpl: TemplatedControlImpl + $crate::Upcast<Thumb>
```

The overridable members introduced by the class.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/thumb.rs#L25)

## Members

- [`on_drag_started`](#function-on_drag_started)
- [`on_drag_delta`](#function-on_drag_delta)
- [`on_drag_completed`](#function-on_drag_completed)

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

### on_drag_started

```rust
fn on_drag_started(this: &Self, e: &VectorEventArgs)
```

Invoked when an unhandled `DragStarted` event reaches an element
in its route that is derived from this class. Implement this
method to add class handling for this event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/thumb.rs#L25)

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

### on_drag_delta

```rust
fn on_drag_delta(this: &Self, e: &VectorEventArgs)
```

Invoked when an unhandled `DragDelta` event reaches an element in
its route that is derived from this class. Implement this method
to add class handling for this event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/thumb.rs#L25)

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

### on_drag_completed

```rust
fn on_drag_completed(this: &Self, e: &VectorEventArgs)
```

Invoked when an unhandled `DragCompleted` event reaches an element
in its route that is derived from this class. Implement this
method to add class handling for this event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/thumb.rs#L25)

## Trait implementations

- [`ThumbImpl`](/docs/0.5.0/api/ferroui-controls/primitives/trait-thumbimpl/)

## Availability

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