# TimePickerSelectedValueChangedEventArgs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/date_time_pickers/struct-timepickerselectedvaluechangedeventargs/

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

```rust
struct TimePickerSelectedValueChangedEventArgs
```

Defines the argument passed when the `SelectedTime` of a time picker
changes.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/date_time_pickers/time_picker_selected_value_changed_event_args.rs#L6)

## Members

- [`new`](#function-new)
- [`old_time`](#function-old_time)
- [`new_time`](#function-new_time)

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

### new

```rust
fn new(old: Option<SignedDuration>, new_t: Option<SignedDuration>) -> Self
```

Creates args for a change of the selected time.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/date_time_pickers/time_picker_selected_value_changed_event_args.rs#L13)

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

### old_time

```rust
fn old_time(self: &Self) -> Option<SignedDuration>
```

The selected time before the change.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/date_time_pickers/time_picker_selected_value_changed_event_args.rs#L19)

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

### new_time

```rust
fn new_time(self: &Self) -> Option<SignedDuration>
```

The selected time after the change.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`

## Availability

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