# DrawnPropertiesDictionary

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-livecharts/visual_states/struct-drawnpropertiesdictionary/

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

```rust
struct DrawnPropertiesDictionary
```

Ordered, named setters and shared behaviors for one state. Replacing a
setter preserves its insertion position, as in the source dictionary.

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

## Members

- [`origin`](#struct_field-origin)
- [`behaviors`](#struct_field-behaviors)
- [`new`](#function-new)
- [`with_origin`](#function-with_origin)
- [`with_behavior`](#function-with_behavior)
- [`insert`](#function-insert)
- [`get`](#function-get)
- [`setters`](#function-setters)
- [`len`](#function-len)
- [`is_empty`](#function-is_empty)

<a id="struct_field-origin"></a>

### origin

```rust
origin: StateOrigin
```



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

<a id="struct_field-behaviors"></a>

### behaviors

```rust
behaviors: Vec<std::rc::Rc<dyn IStateBehavior>>
```



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

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

### new

```rust
fn new(setters: impl IntoIterator<Item = DrawnPropertySetter>) -> Self
```



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

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

### with_origin

```rust
fn with_origin(self: Self, origin: StateOrigin) -> Self
```



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

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

### with_behavior

```rust
fn with_behavior(self: Self, behavior: Rc<dyn IStateBehavior>) -> Self
```



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

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

### insert

```rust
fn insert(self: &mut Self, setter: DrawnPropertySetter) -> Option<DrawnPropertySetter>
```



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

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

### get

```rust
fn get(self: &Self, name: &str) -> Option<&DrawnPropertySetter>
```



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

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

### setters

```rust
fn setters(self: &Self) -> impl Iterator<Item = &DrawnPropertySetter>
```



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

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

### len

```rust
fn len(self: &Self) -> usize
```



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

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

### is_empty

```rust
fn is_empty(self: &Self) -> bool
```



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

## 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`
- `Default`
- `Debug`

## Availability

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