# TreeViewImpl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/trait-treeviewimpl/

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

```rust
trait TreeViewImpl: ItemsControlImpl + $crate::Upcast<TreeView>
```

The overridable members introduced by the class.

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

## Members

- [`should_trigger_selection`](#function-should_trigger_selection)
- [`should_trigger_selection_key`](#function-should_trigger_selection_key)
- [`update_selection_from_event`](#function-update_selection_from_event)

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

### should_trigger_selection

```rust
fn should_trigger_selection(this: &Self, selectable: &Visual, event_args: &PointerEventArgs) -> bool
```

Analyses a pointer event received by a selectable element, and
determines whether the action should trigger selection on press,
on release, or not at all.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tree_view.rs#L37)

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

### should_trigger_selection_key

```rust
fn should_trigger_selection_key(this: &Self, selectable: &Visual, event_args: &KeyEventArgs) -> bool
```

Analyses a key event received by a selectable element, and
determines whether the action should trigger selection.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tree_view.rs#L37)

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

### update_selection_from_event

```rust
fn update_selection_from_event(this: &Self, container: &Ref<Control>, event_args: &dyn IRoutedEventArgs) -> bool
```

Updates the selection based on an event that may have originated
in a container that belongs to the control.

Returns true if the event originated from a container that
belongs to the control and triggered selection; otherwise false.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/tree_view.rs#L37)

## Trait implementations

- [`TreeViewImpl`](/docs/0.5.0/api/ferroui-controls/trait-treeviewimpl/)

## Availability

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