# ChildIndexChangedEventArgs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/logical_tree/struct-childindexchangedeventargs/

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

```rust
struct ChildIndexChangedEventArgs
```

Event args for the child index changed notification of a child index
provider.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/logical_tree/child_index_changed_event_args.rs#L18)

## Members

- [`new`](#function-new)
- [`child_indexes_reset`](#function-child_indexes_reset)
- [`total_count_changed`](#function-total_count_changed)
- [`action`](#function-action)
- [`child`](#function-child)
- [`index`](#function-index)

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

### new

```rust
fn new(child: Ref<StyledElement>, index: i32) -> Self
```

Creates the arguments for a change of the index of a single child.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/logical_tree/child_index_changed_event_args.rs#L26)

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

### child_indexes_reset

```rust
fn child_indexes_reset() -> Self
```

The arguments for a reset of all child indexes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/logical_tree/child_index_changed_event_args.rs#L31)

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

### total_count_changed

```rust
fn total_count_changed() -> Self
```

The arguments for a change of the total number of children.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/logical_tree/child_index_changed_event_args.rs#L36)

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

### action

```rust
fn action(self: &Self) -> ChildIndexChangedAction
```

The type of change that occurred.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/logical_tree/child_index_changed_event_args.rs#L41)

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

### child

```rust
fn child(self: &Self) -> Option<&Ref<StyledElement>>
```

The logical child whose index was changed, or `None` if all children
should be re-evaluated.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/logical_tree/child_index_changed_event_args.rs#L47)

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

### index

```rust
fn index(self: &Self) -> i32
```

The new index of the child, or -1 if all children should be
re-evaluated.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/logical_tree/child_index_changed_event_args.rs#L53)

## Trait implementations

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

## Availability

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