# FileActivatedEventArgs

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

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

```rust
struct FileActivatedEventArgs
```

The arguments of an activation in which the application is passed one or
more files to open. Convert them to
`ActivatedEventArgs` to raise the event.

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

## Members

- [`new`](#function-new)
- [`kind`](#function-kind)
- [`files`](#function-files)

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

### new

```rust
fn new(files: Vec<Rc<dyn IStorageItem>>) -> Self
```

Creates the arguments with the files the application was activated
with.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/application_lifetimes/file_activated_event_args.rs#L16)

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

### kind

```rust
fn kind(self: &Self) -> ActivationKind
```

The kind of activation: `ActivationKind::File`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/application_lifetimes/file_activated_event_args.rs#L21)

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

### files

```rust
fn files(self: &Self) -> &[Rc<dyn IStorageItem>]
```

The files the application was activated with.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/application_lifetimes/file_activated_event_args.rs#L26)

## 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`
- `From<FileActivatedEventArgs>`
- `Clone`

## Availability

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