# TrackImpl

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

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

```rust
trait TrackImpl: ControlImpl + $crate::Upcast<Track>
```

The overridable members introduced by the class.

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

## Members

- [`value_from_point`](#function-value_from_point)
- [`value_from_distance`](#function-value_from_distance)

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

### value_from_point

```rust
fn value_from_point(this: &Self, point: Point) -> f64
```

Calculates the distance along the thumb of a specified point
along the track.

Returns the distance between the thumb and the specified point
value.

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

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

### value_from_distance

```rust
fn value_from_distance(this: &Self, horizontal: f64, vertical: f64) -> f64
```

Calculates the change in the value of the track when the thumb
moves by the given horizontal and vertical displacement.

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

## Trait implementations

- [`TrackImpl`](/docs/0.5.0/api/ferroui-controls/primitives/trait-trackimpl/)

## Availability

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