# InputPaneStateEventArgs

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

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

```rust
struct InputPaneStateEventArgs
```

Provides state change information about the input pane.

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

## Members

- [`new`](#function-new)
- [`with_animation`](#function-with_animation)
- [`new_state`](#function-new_state)
- [`start_rect`](#function-start_rect)
- [`end_rect`](#function-end_rect)
- [`animation_duration`](#function-animation_duration)
- [`easing`](#function-easing)

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

### new

```rust
fn new(new_state: InputPaneState, start_rect: Option<Rect>, end_rect: Rect) -> Self
```

Creates the event args for a change that is not animated.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/i_input_pane.rs#L105)

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

### with_animation

```rust
fn with_animation(new_state: InputPaneState, start_rect: Option<Rect>, end_rect: Rect, animation_duration: Duration, easing: Option<Rc<dyn IEasing>>) -> Self
```

Creates the event args for an animated change.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/i_input_pane.rs#L110)

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

### new_state

```rust
fn new_state(self: &Self) -> InputPaneState
```

The new state of the input pane.

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

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

### start_rect

```rust
fn start_rect(self: &Self) -> Option<Rect>
```

The initial bounds of the input pane.

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

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

### end_rect

```rust
fn end_rect(self: &Self) -> Rect
```

The final bounds of the input pane.

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

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

### animation_duration

```rust
fn animation_duration(self: &Self) -> Duration
```

The duration of the input pane's state change animation.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/i_input_pane.rs#L136)

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

### easing

```rust
fn easing(self: &Self) -> Option<&Rc<dyn IEasing>>
```

The easing of the input pane's state changed animation.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/i_input_pane.rs#L141)

## Trait implementations

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

## Availability

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