# IStateBehavior

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-livecharts/visual_states/trait-istatebehavior/

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

```rust
trait IStateBehavior
```

The imperative side of a state. A definition is shared between targets;
per-target values belong on the supplied animatable, not on shared paints.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/visual_states/state_behavior.rs#L6)

## Members

- [`on_state_applied`](#function-on_state_applied)
- [`on_state_removed`](#function-on_state_removed)

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

### on_state_applied

```rust
fn on_state_applied(self: &Self, target: &mut Animatable, now_ms: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/visual_states/state_behavior.rs#L7)

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

### on_state_removed

```rust
fn on_state_removed(self: &Self, target: &mut Animatable, now_ms: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/visual_states/state_behavior.rs#L8)

## Trait implementations

- [`IStateBehavior`](/docs/0.5.0/api/ferroui-livecharts/visual_states/trait-istatebehavior/)

## Availability

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