Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Components/ListView.h |
Include |
#include "Components/ListView.h" |
class UListView :
public UListViewBase,
public ITypedUMGListView< UObject * >
A virtualized list that allows up to thousands of items to be displayed.
An important distinction to keep in mind here is "Item" vs. "Entry" The list itself is based on a list of n items, but only creates as many entry widgets as can fit on screen. For example, a scrolling ListView of 200 items with 5 currently visible will only have created 5 entry widgets.
To make a widget usable as an entry in a ListView, it must inherit from the IUserObjectListEntry interface.
Name | Description | ||
---|---|---|---|
|
bClearSelectionOnClick |
||
|
bIsFocusable |
||
|
bReturnFocusToSelection |
||
|
ConsumeMouseWheel |
||
|
float |
EntrySpacing |
|
|
ListItems |
||
|
TSharedPtr< SLi... |
MyListView |
|
|
TEnumAsByte< EO... |
Orientation |
The scroll & layout orientation of the list. |
|
ScrollBarStyle |
||
|
TEnumAsByte< ES... |
SelectionMode |
|
|
WidgetStyle |
Name | Description | |
---|---|---|
|
UListView ( |
Name | Description | ||
---|---|---|---|
|
AddItem ( |
Adds an the item to the list |
|
|
ClearListItems() |
Removes all items from the list |
|
|
TSharedRef< ... |
ConstructListView() |
SListView construction helper - useful if using a custom STreeView subclass |
|
RowWidgetT &... |
GetEntryWidgetFromItem ( |
|
|
GetIndexForItem ( |
Returns the index that the specified item is at. Will return the first found, or -1 for not found |
|
|
UObject *... |
GetItemAt ( |
Returns the item at the given index |
|
const TArray... |
GetListItems() |
Gets the list of all items in the list. |
|
GetNumItems() |
Returns the total number of items |
|
|
GetOrientation() |
||
|
ObjectT *... |
GetSelectedItem() |
Gets the first selected item, if any; recommended that you only use this for single selection lists. |
|
ESelectionMo... |
GetSelectionMode() |
|
|
HandleOnEntryInitializedInternal ( |
||
|
IsRefreshPending() |
Returns true if a refresh is pending and the list will be rebuilt on the next tick |
|
|
NavigateToIndex ( |
Requests that the item at the given index navigated to, scrolling it into view if needed. |
|
|
OnItemsChanged |
||
|
OnListItemEndPlayed ( |
||
|
OnListItemOuterEndPlayed ( |
||
|
OnSelectionChangedInternal ( |
||
|
RemoveItem ( |
Removes an the item from the list |
|
|
ScrollIndexIntoView ( |
Requests that the item at the given index is scrolled into view |
|
|
SetListItems ( |
Set the list of items to display within this listview |
|
|
SetSelectedIndex ( |
Sets the item at the given index as the sole selected item. |
|
|
SetSelectedItem ( |
||
|
SetSelectionMode ( |
Sets the new selection mode, preserving the current selection where possible. |
Name | Description | ||
---|---|---|---|
|
HandleListEntryHovered ( |
||
|
HandleListEntryUnhovered ( |
||
|
OnRefreshDesignerItems() |
Called during design time to allow lists to generate preview entries via dummy data. |
|
|
TSharedRef< ... |
RebuildListWidget() |
Implement in child classes to construct the actual ListView Slate widget |
Name | Description | ||
---|---|---|---|
|
ReleaseSlateResources ( |
Name | Description | ||
---|---|---|---|
|
TSubclassOf<... |
GetDefaultEntryClass() |
|
|
GetDesiredEntryPadding ( |
Gets the desired padding for the entry representing the given item |
|
|
GetMyListView() |
||
|
GetOwningUserIndex() |
||
|
IsDesignerPreview() |
||
|
UUserWidget ... |
OnGenerateEntryWidgetInternal ( |
Generates the actual entry widget that represents the given item. |
|
FOnGetEntryC... |
OnGetEntryClassForItem() |
|
|
FSimpleListI... |
OnItemClicked() |
|
|
OnItemClickedInternal ( |
ListView events - implement these instead of binding handlers directly to a list |
|
|
FSimpleListI... |
OnItemDoubleClicked() |
|
|
OnItemDoubleClickedInternal ( |
||
|
FOnItemExpan... |
OnItemExpansionChanged() |
|
|
FOnItemIsHov... |
OnItemIsHoveredChanged() |
|
|
FOnItemScrol... |
OnItemScrolledIntoView() |
|
|
OnItemScrolledIntoViewInternal ( |
||
|
FOnItemSelec... |
OnItemSelectionChanged() |
|
|
FOnListViewS... |
OnListViewScrolled() |