# ItemsChangedEventArgs

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

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

```rust
struct ItemsChangedEventArgs<'a>
```

A change to an untyped items list.

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

## Members

- [`action`](#struct_field-action)
- [`new_items`](#struct_field-new_items)
- [`old_items`](#struct_field-old_items)
- [`new_starting_index`](#struct_field-new_starting_index)
- [`old_starting_index`](#struct_field-old_starting_index)
- [`RESET`](#assoc_const-reset)
- [`add`](#function-add)
- [`remove`](#function-remove)

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

### action

```rust
action: ferroui_base::collections::NotifyCollectionChangedAction
```

The action that caused the notification.

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

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

### new_items

```rust
new_items: ItemsView<'a>
```

The items involved in the change (added, or the replacements).

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

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

### old_items

```rust
old_items: ItemsView<'a>
```

The items affected by a replace, remove or move.

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

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

### new_starting_index

```rust
new_starting_index: i32
```

The index at which the change occurred, or `-1`.

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

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

### old_starting_index

```rust
old_starting_index: i32
```

The index at which a move, remove or replace occurred, or `-1`.

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

<a id="assoc_const-reset"></a>

### RESET

```rust
const RESET: ItemsChangedEventArgs<'static>
```

The arguments of a reset notification.

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

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

### add

```rust
fn add(new_items: impl Into<ItemsView<'a>>, new_starting_index: i32) -> Self
```

The arguments of an add of `new_items` at `new_starting_index`.

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

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

### remove

```rust
fn remove(old_items: impl Into<ItemsView<'a>>, old_starting_index: i32) -> Self
```

The arguments of a remove of `old_items` from `old_starting_index`.

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

## 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`
- `Copy`
- `Debug`
- `From<&NotifyCollectionChangedEventArgs<'a, Option<Rc<dyn AnyValue>>>>`

## Availability

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