Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Components/TreeView.h |
Include |
#include "Components/TreeView.h" |
class UTreeView : public UListView
Similar to ListView, but can display a hierarchical tree of elements. The base items source for the tree identifies the root items, each of which can have n associated child items. There is no hard limit to the nesting - child items can have children and so on
To make a widget usable as an entry in a TreeView, it must inherit from the IUserObjectListEntry interface.
Name | Description | ||
---|---|---|---|
|
TSharedPtr< STr... |
MyTreeView |
Name | Description | |
---|---|---|
|
UTreeView ( |
Name | Description | ||
---|---|---|---|
|
CollapseAll() |
Collapses all currently expanded items |
|
|
TSharedRef< ... |
ConstructTreeView() |
STreeView construction helper - useful if using a custom STreeView subclass |
|
ExpandAll() |
Expands all items with children |
|
|
SetItemExpansion |
Attempts to expand/collapse the given item (only relevant if the item has children) |
|
|
SetOnGetItemChildren ( |
||
|
SetOnGetItemChildren ( |
Name | Description | ||
---|---|---|---|
|
TSharedRef< ... |
RebuildListWidget() |
Implement in child classes to construct the actual ListView Slate widget |
Name | Description | ||
---|---|---|---|
|
ReleaseSlateResources ( |
Name | Description | ||
---|---|---|---|
|
OnGetChildrenInternal |
TreeViews only. |
|
|
OnItemClickedInternal ( |
ListView events - implement these instead of binding handlers directly to a list |
|
|
OnItemExpansionChangedInternal |