# CompositionInteractionSourceCollection

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/rendering/composition/interactions/struct-compositioninteractionsourcecollection/

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

```rust
struct CompositionInteractionSourceCollection
```

The sources of a tracker (`CompositionInteractionSourceCollection`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/interactions/interaction_tracker.rs#L575)

## Members

- [`add`](#function-add)
- [`remove`](#function-remove)
- [`remove_all`](#function-remove_all)
- [`count`](#function-count)
- [`items`](#function-items)

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

### add

```rust
fn add(self: &Self, source: Rc<VisualInteractionSource>)
```

Adds a source: its input drives the tracker from now on. Adding a
source twice does nothing.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/interactions/interaction_tracker.rs#L583)

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

### remove

```rust
fn remove(self: &Self, source: &Rc<VisualInteractionSource>)
```

Removes a source.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/interactions/interaction_tracker.rs#L592)

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

### remove_all

```rust
fn remove_all(self: &Self)
```

Removes every source.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/interactions/interaction_tracker.rs#L604)

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

### count

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

The number of sources.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/interactions/interaction_tracker.rs#L612)

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

### items

```rust
fn items(self: &Self) -> Vec<Rc<VisualInteractionSource>>
```

The sources, in the order they were added.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/interactions/interaction_tracker.rs#L617)

## Trait implementations

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

## Availability

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