# EventTreeNode

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-diagnostics/diagnostics/view_models/struct-eventtreenode/

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

```rust
struct EventTreeNode
```

The node of one routed event: enabling it records the event, with the
chain of the elements it visits, in the events page.

The part of the deriving class of a node (see [`EventTreeNodeKind`](/docs/0.5.0/api/ferroui-diagnostics/diagnostics/view_models/enum-eventtreenodekind/)).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/event_tree_node.rs#L20)

## Members

- [`new`](#function-new)
- [`event`](#function-event)

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

### new

```rust
fn new(parent: &Rc<EventTreeNodeBase>, event: RoutedEvent, vm: Weak<EventsPageViewModel>) -> Rc<EventTreeNodeBase>
```

C# `new EventTreeNode(EventOwnerTreeNode parent, RoutedEvent @event, EventsPageViewModel vm)`.

The view model of the page is held weakly: the page holds the nodes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/event_tree_node.rs#L31)

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

### event

```rust
fn event(self: &Self) -> RoutedEvent
```

The routed event of the node.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/event_tree_node.rs#L47)

## Trait implementations

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

## Availability

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