# CalendarModeChangedEventArgs

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

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

```rust
struct CalendarModeChangedEventArgs
```

Provides data for the `DisplayModeChanged` event of the [`Calendar`](/docs/0.5.0/api/ferroui-controls/struct-calendar/).

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

## Members

- [`new`](#function-new)
- [`old_mode`](#function-old_mode)
- [`new_mode`](#function-new_mode)

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

### new

```rust
fn new(old_mode: CalendarMode, new_mode: CalendarMode) -> Self
```

Initializes a new instance of the `CalendarModeChangedEventArgs`
class with the previous and the new mode.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar/calendar.rs#L121)

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

### old_mode

```rust
fn old_mode(self: &Self) -> CalendarMode
```

Gets the previous mode of the `Calendar`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar/calendar.rs#L126)

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

### new_mode

```rust
fn new_mode(self: &Self) -> CalendarMode
```

Gets the new mode of the `Calendar`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar/calendar.rs#L131)

## 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`
- `Deref`
- [`IRoutedEventArgs`](/docs/0.5.0/api/ferroui-base/interactivity/trait-iroutedeventargs/)

## Availability

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