# EventOwnerTreeNode

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

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

```rust
struct EventOwnerTreeNode
```

The node of the type that owns a group of routed events: its children
are the nodes of the events, and enabling or disabling it enables or
disables all of them.

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

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

## Members

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

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

### new

```rust
fn new(type_: &'static TypeInfo, events: impl IntoIterator<Item = RoutedEvent>, vm: &Weak<EventsPageViewModel>) -> Rc<EventTreeNodeBase>
```

C# `new EventOwnerTreeNode(Type type, IEnumerable<RoutedEvent> events, EventsPageViewModel vm)`:
the node of `type_` with a child for each of `events`, ordered by
name, expanded.

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

## 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/).
