# RangeBaseValueChangedEventArgs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/primitives/struct-rangebasevaluechangedeventargs/

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

```rust
struct RangeBaseValueChangedEventArgs
```

Provides data specific to a `RangeBase::value_changed` event.

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

## Members

- [`new`](#function-new)
- [`with_source`](#function-with_source)
- [`old_value`](#function-old_value)
- [`new_value`](#function-new_value)

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

### new

```rust
fn new<T: ?Sized>(old_value: f64, new_value: f64, routed_event: Option<&RoutedEvent<T>>) -> Self
```

Creates the args from the old and the new value of the range value
property and the routed event associated with the args.

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

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

### with_source

```rust
fn with_source<T: ?Sized>(old_value: f64, new_value: f64, routed_event: Option<&RoutedEvent<T>>, source: impl Into<Nullable<FerroObject>>) -> Self
```

Creates the args from the old and the new value of the range value
property, the routed event associated with the args and the source
object that raised the routed event.

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

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

### old_value

```rust
fn old_value(self: &Self) -> f64
```

The old value of the range value property.

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

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

### new_value

```rust
fn new_value(self: &Self) -> f64
```

The new value of the range value property.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ToOwned`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Default`
- `Deref`
- [`IRoutedEventArgs`](/docs/0.5.0/api/ferroui-base/interactivity/trait-iroutedeventargs/)
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

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