# EventTreeNodeBase

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

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

```rust
struct EventTreeNodeBase
```

A node of the tree of routed events of the events page: the owner of a
group of events or one event, with the check box that enables the
recording of the events below it.

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

## Members

- [`kind`](#function-kind)
- [`as_event_tree_node`](#function-as_event_tree_node)
- [`as_event_owner_tree_node`](#function-as_event_owner_tree_node)
- [`children`](#function-children)
- [`visible_children`](#function-visible_children)
- [`is_expanded`](#function-is_expanded)
- [`set_is_expanded`](#function-set_is_expanded)
- [`is_enabled`](#function-is_enabled)
- [`set_is_enabled`](#function-set_is_enabled)
- [`is_visible`](#function-is_visible)
- [`set_is_visible`](#function-set_is_visible)
- [`parent`](#function-parent)
- [`text`](#function-text)

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

### kind

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

The part of the deriving class.

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

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

### as_event_tree_node

```rust
fn as_event_tree_node(self: &Self) -> Option<&EventTreeNode>
```

The node as an `EventTreeNode` (C# `node as EventTreeNode`).

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

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

### as_event_owner_tree_node

```rust
fn as_event_owner_tree_node(self: &Self) -> Option<&EventOwnerTreeNode>
```

The node as an `EventOwnerTreeNode` (C# `node as EventOwnerTreeNode`).

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

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

### children

```rust
fn children(self: &Self) -> Option<FerroList<Rc<EventTreeNodeBase>>>
```

The child nodes; `None` for a node without children.

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

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

### visible_children

```rust
fn visible_children(self: &Self) -> Option<Rc<FerroList<Rc<EventTreeNodeBase>>>>
```

The visible children, in their order: the child rows of the node in the TreeDataGrid of the
events page, which follow the filter of the page (`sync_visible_nodes`); `None` for a node
without children. The same list every time, so that the rows of the children are kept
while the node notifies other changes.

Deviation (DEVIATIONS.md, Developer tools): upstream's tree view hides the items of the
nodes that are not visible; the rows of a TreeDataGrid are the nodes of its source.

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

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

### is_expanded

```rust
fn is_expanded(self: &Self) -> bool
```



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

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

### set_is_expanded

```rust
fn set_is_expanded(self: &Self, value: bool)
```



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

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

### is_enabled

```rust
fn is_enabled(self: &Self) -> Option<bool>
```

Whether the events of the node are recorded: `None` when some of the
events below the node are and some are not.

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

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

### set_is_enabled

```rust
fn set_is_enabled(self: &Self, value: Option<bool>)
```

The virtual setter of `IsEnabled`: the override of the deriving class
(`EventOwnerTreeNode` or `EventTreeNode`).

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

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

### is_visible

```rust
fn is_visible(self: &Self) -> bool
```



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

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

### set_is_visible

```rust
fn set_is_visible(self: &Self, value: bool)
```



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

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

### parent

```rust
fn parent(self: &Self) -> Option<Rc<EventTreeNodeBase>>
```



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

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

### text

```rust
fn text(self: &Self) -> &str
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`TreeModel`](/docs/0.5.0/api/ferroui-treedatagrid-core/accessor/trait-treemodel/)
- `PartialEq`
- [`INotifyPropertyChanged`](/docs/0.5.0/api/ferroui-base/data/model/use-inotifypropertychanged/)
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

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