Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArrayPointer | |||
| FGenerationPassGuard | |||
| FItemInfo | Info needed by every visible item in the tree | ||
| FObservableArrayPointer | |||
| ForwardedSlateItemsSourceArgument | |||
| FSharedObservableArray | |||
| FSparseItemInfo | Info needed by a (relatively) small fraction of the tree items; some of them may not be visible. | ||
| FTableViewDimensions | Scroll offset from the beginning of the list in items Abstracts away the need to distinguish between X or Y when calculating table layout elements | ||
| IItemsSource | A generic container for TableView items. | ||
| ITableRow | Interface for table views to talk to their rows. | ||
| SListView | A ListView widget observes an array of data items and creates visual representations of these items. | ||
| STableViewBase | Contains ListView functionality that does not depend on the type of data being observed by the ListView. |
Typedefs
| Name | Description |
|---|---|
| FOnGetMaxRowSizeForColumn | Callback to fetch the max row width for a specified column id |
| FOnSortModeChanged | Callback when sort mode changes |
| FOnTableRowDragEnter | |
| FOnTableRowDragLeave | |
| FOnTableRowDrop | |
| FOnTableViewScrolled | |
| FOnWidthChanged | Callback when the width of the column changes |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EColumnSizeMode::Type | |||
| EColumnSortMode::Type | |||
| EColumnSortPriority::Type | |||
| EHeaderComboVisibility | |||
| EItemDropZone | Where we are going to drop relative to the target item. | ||
| EListItemAlignment | If the list panel is arranging items as tiles, this enum dictates how the items should be aligned (basically, where any extra space is placed) | ||
| ETableRowSignalSelectionMode | When the table row should signal the owner widget that the selection changed. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddReferencedObjects
(
FReferenceCollector& Collector |
Lists and Trees serialize items that they observe because they rely on the property that holding a reference means it will not be garbage collected. | |
| void | Cancels a previous request to scroll an item into view (cancels navigation requests as well). | ||
| void | Empty the highlighted item set. | ||
| void | |||
| void | Empty the selection set. | ||
| TSharedRef< ITableRow > | GenerateNewPinnedWidget
(
ItemType InItem, |
||
| TSharedRef< ITableRow > | GenerateNewWidget
(
ItemType InItem |
Given an data item, generate a widget corresponding to it. | |
| void | GeneratePinnedWidgetForItem
(
const ItemType& CurItem, |
||
| float | GenerateWidgetForItem
(
const ItemType& CurItem, |
||
| FOnItemToString_Debug | |||
| TArrayView< const ItemType > | GetItems () |
||
| FVector2D | GetMaxRowSizeForColumn
(
const FName& ColumnId, |
Will determine the max row size for the specified column id | |
| int32 | |||
| int32 | Gets the number of selected items. | ||
| FString | |||
| int32 | GetSelectedItems
(
TArray< ItemType >& SelectedItemArray |
||
| TArray< ItemType > | Returns a list of selected item indices, or an empty array if nothing is selected | ||
| bool | |||
| bool | IsItemSelected
(
const ItemType& InItem |
Test if the current item is selected. | |
| bool | IsItemVisible
(
ItemType Item |
Checks whether the specified item is currently visible in the list view. | |
| const TObjectPtrWrapTypeOf< ItemType > * | ItemFromWidget
(
const ITableRow* WidgetToFind |
Given a Widget, find the corresponding data item. | |
| void | NavigationSelect
(
const ItemType& InItemToSelect, |
Selects the specified item and scrolls it into view. If shift is held, it will be a range select. | |
| void | |||
| void | |||
| TOptional< ItemType > | Private_FindNextSelectableOrNavigable
(
const ItemType& InItemToSelect |
||
| TOptional< ItemType > | Private_FindNextSelectableOrNavigableWithIndexAndDirection
(
const ItemType& InItemToSelect, |
||
| void | Private_RequestNavigateToItem
(
ItemType Item, |
||
| void | Private_SetSelection
(
ItemType SoleSelectedItem, |
||
| void | RebuildList () |
||
| FReGenerateResults | ReGenerateItems
(
const FGeometry& MyGeometry |
Update generate Widgets for Items as needed and clean up any Widgets that are no longer needed. | |
| void | ReGeneratePinnedItems
(
const TArray< ItemType >& InItems, |
||
| void | RequestNavigateToItem
(
ItemType Item, |
Navigate to a specific item, scrolling it into view if needed. | |
| void | RequestScrollIntoView
(
ItemType ItemToView, |
||
| void | RequestScrollIntoView
(
ItemType ItemToView, |
Scroll an item into view. If the item is not found, fails silently. | |
| float | ScrollBy
(
const FGeometry& MyGeometry, |
||
| EScrollIntoViewResult | ScrollIntoView
(
const FGeometry& ListViewGeometry |
If there is a pending request to scroll an item into view, do so. | |
| void | SetItemHighlighted
(
const ItemType& TheItem, |
Set the highlighted state of an item. | |
| void | SetItemSelection
(
TConstArrayView< ItemType > InItems, |
Set the selection state of multiple items. | |
| void | SetItemSelection
(
const ItemType& InItem, |
Set the selection state of an item. | |
| void | SetItemsSource
(
const TArray< ItemType >* InListItemsSource |
Establishes a wholly new list of items being observed by the list. | |
| void | SetItemsSource
(
TSharedRef<::UE::Slate::Containers::TObservableArray< ItemType > > InListItemsSource |
Establishes a wholly new list of items being observed by the list. | |
| void | SetItemsSource
(
TUniquePtr< UE::Slate::ItemsSource::IItemsSource< ItemType > > Provider |
Establishes a wholly new list of items being observed by the list. | |
| void | SetListItemsSource
(
const TArray< ItemType >& InListItemsSource |
||
| void | SetOnEntryInitialized
(
const FOnEntryInitialized& Delegate |
Sets the OnEntryInitializer delegate. | |
| void | SetSelection
(
ItemType SoleSelectedItem, |
Set the currently selected Item. | |
| void | SetSelectionMode
(
const TAttribute< ESelectionMode::Type >& NewSelectionMode |
Set the current selection mode of the list. | |
| void | SetStyle
(
const FTableViewStyle* InStyle |
||
| const TBitArray & | Helper for implementing an efficient version of an item that is not in the tree view, and therefore does not to know about parent wires. | ||
| void | Remove any items that are no longer in the list from the selection set. | ||
| TSharedPtr< ITableRow > | WidgetFromItem
(
const ItemType& InItem |
Find a widget for this item if it has already been constructed. |
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bClearSelectionOnClick | If true, the selection will be cleared if the user clicks in empty space (not on an item) | |
| bool | bHandleDirectionalNavigation | Should directional nav be supported | |
| bool | bHandleGamepadEvents | Should gamepad nav be supported | |
| bool | bHandleSpacebarSelection | Should space bar based selection be supported | |
| bool | bIsHierarchyCollapsed | If true, number of pinned items > MaxPinnedItems so some items are collapsed in the hierarchy | |
| bool | bNavigateOnScrollIntoView | If true, the item currently slated to be scrolled into view will also be navigated to after being scrolled in | |
| bool | bReturnFocusToSelection | If true, the focus will be returned to the last selected object in a list when navigated to. | |
| TAttribute< int32 > | DefaultMaxPinnedItems | The initial value of MaxPinnedItems (used to restore it back if overriden) | |
| TItemSet | HighlightedItems | A set of which items should be highlighted | |
| TAttribute< bool > | IsFocusable | True when the list view supports keyboard focus | |
| const TArray< ItemType > * | ItemsSource | Pointer to the array of data items that we are observing | |
| NullableItemType | ItemToNotifyWhenInView | When set, the list will notify this item when it has been scrolled into view | |
| NullableItemType | ItemToScrollIntoView | When not null, the list will try to scroll to this item on tick. | |
| TAttribute< int32 > | MaxPinnedItems | The maximum number of pinned items allowed | |
| float | NavigationScrollOffset | The additional scroll offset (in items) to show when navigating to rows at the edge of the visible area (i.e. how much of the following item(s) to show) | |
| FOnMouseButtonClick | OnClick | Called when the user clicks on an element in the list view with the left mouse button | |
| FOnMouseButtonDoubleClick | OnDoubleClick | Called when the user double-clicks on an element in the list view with the left mouse button | |
| FOnTableViewBadState | OnEnteredBadState | Invoked when the tree enters a bad state. | |
| FOnEntryInitialized | OnEntryInitialized | Invoked after initializing an entry being generated, before it may be added to the actual widget hierarchy. | |
| FOnFinishedScrolling | OnFinishedScrolling | Delegate to be invoked when TargetScrollOffset is reached at the end of a ::Tick. | |
| FOnGenerateRow | OnGeneratePinnedRow | Delegate to be invoked when the list needs to generate a new pinned widget from a data item. | |
| FOnGenerateRow | OnGenerateRow | Delegate to be invoked when the list needs to generate a new widget from a data item. | |
| FIsSelectableOrNavigable | OnIsSelectableOrNavigable | Delegate to invoke to see if we can navigate or select item. | |
| FOnItemScrolledIntoView | OnItemScrolledIntoView | Delegate to be invoked when an item has come into view after it was requested to come into view. | |
| FOnItemToString_Debug | OnItemToString_Debug | Assign this to get more diagnostics from the list view. | |
| FOnKeyDown | OnKeyDownHandler | Called when the user presses a keyboard key | |
| FOnWidgetToBeRemoved | OnRowReleased | ||
| FOnSelectionChanged | OnSelectionChanged | Delegate to invoke when selection changes. | |
| FWidgetGenerator | PinnedWidgetGenerator | A widget generator component used for pinned items in the list | |
| NullableItemType | RangeSelectionStart | The item which was last manipulated; used as a start for shift-click selection | |
| TItemSet | SelectedItems | A set of selected data items | |
| NullableItemType | SelectorItem | The item to manipulate selection for | |
| const FTableViewStyle * | Style | Style resource for the list | |
| uint32 | UserRequestingScrollIntoView | The user index requesting the item to be scrolled into view. | |
| TUniquePtr< UE::Slate::ItemsSource::IItemsSource< ItemType > > | ViewSource | Pointer to the source data that we are observing | |
| FWidgetGenerator | WidgetGenerator | A widget generator component |