| STableViewBase | ||||||||||
| TListTypeTraits< ItemType >::SerializerType | ||||||||||
| ITypedTableView
|
Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Widgets/Views/STreeView.h |
Include |
#include "Widgets/Views/STreeView.h" |
template<typename ItemType>
class STreeView : public SListView< ItemType >
This assumes you are familiar with SListView; see SListView.
TreeView setup is virtually identical to that of ListView. Additionally, TreeView introduces a new delegate: [OnGetChildren()](API\Runtime\Slate\Widgets\Views\STreeView\OnGetChildren). [OnGetChildren()](API\Runtime\Slate\Widgets\Views\STreeView\OnGetChildren) takes some DataItem being observed by the tree and returns that item's children. Like ListView, TreeView operates exclusively with pointers to DataItems.
Name | Description | ||
---|---|---|---|
|
DenseItemInfos |
Info needed by every item in the linearized version of the tree. |
|
|
TArray< ItemTyp... |
LinearizedItems |
A linearized version of the items being observed by the tree view. |
|
OnExpansionChanged |
The delegate that is invoked whenever an item in the tree is expanded or collapsed. |
|
|
OnGetChildren |
The delegate that is invoked whenever we need to gather an item's children. |
|
|
OnSetExpansionRecursive |
The delegate that is invoked to recursively expand/collapse a tree items children. |
|
|
SparseItemInfos |
Info needed by a small fraction of tree items; some of these are not visible to the user. |
|
|
const TArray< I... |
TreeItemsSource |
A pointer to the items being observed by the tree view. |
Name | Description | |
---|---|---|
|
STreeView() |
Default constructor. |
Name | Description | ||
---|---|---|---|
|
ClearExpandedItems() |
Clears the entire set of expanded items. |
|
|
Construct ( |
Construct this widget |
|
|
GetExpandedItems ( |
Generates a set of items that are currently expanded. |
|
|
IsItemExpanded ( |
||
|
PopulateLinearizedItems |
Given: an array of items (ItemsSource) each of which potentially has a child. |
|
|
RequestTreeRefresh() |
||
|
SetItemExpansion ( |
Set whether some data item is expanded or not. |
|
|
SetSingleExpandedItem ( |
Collapse all the items in the tree and expand InItem |
|
|
SetTreeItemsSource ( |
Set the TreeItemsSource. The Tree will generate widgets to represent these items. |
Name | Description | ||
---|---|---|---|
|
TSharedRef< ... |
GenerateNewWidget ( |
Given a TreeItem, create a Widget to represent it in the tree view. |
Name | Description | ||
---|---|---|---|
|
RebuildList() |
Completely wipe existing widgets and fully regenerate them on next tick. |
|
|
RequestListRefresh() |
Queue up a regeneration of the linearized items on the next tick. |
Name | Description | ||
---|---|---|---|
|
OnKeyDown |
Called after a key is pressed when this widget has focus (this event bubbles if not handled) |
|
|
Tick ( |
See SWidget::Tick() |
Name | Description | ||
---|---|---|---|
|
Private_SignalSelectionChanged ( |
Notify the ItemsWidget that we changed its selection. |
Name |
Description |
|
---|---|---|
|
FArguments |