Navigation
Unreal Engine C++ API Reference > Runtime > UMG > Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UVisual
- UWidget
- UListViewBase
- UListView
- UCommonListView
- UEditorUtilityListView
- UTileView
- UCommonTileView
- UTreeView
- UCommonTreeView
- UEditorUtilityTreeView
References
Module | UMG |
Header | /Engine/Source/Runtime/UMG/Public/Components/ListViewBase.h |
Include | #include "Components/ListViewBase.h" |
Syntax
class UListViewBase : public UWidget
Remarks
Bare-bones base class to make creating custom UListView widgets easier. Child classes should also inherit from ITypedUMGListView
Child classes will own the actual SListView
Additionally, the entry widget class can be filtered for a particular class and interface with the EntryClass and EntryInterface metadata arguments This can be specified either on the class directly (see below) or on any BindWidget FProperty
Example: class UMyUserWidget : public UUserWidget { UListView* ListView_InventoryItems; }
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | AllowOverscroll | Disable to stop scrollbars from activating inertial overscrolling |
![]() |
bool | bAllowDragging | True to allow dragging of row widgets in the list |
![]() |
bool | bEnableFixedLineOffset | |
![]() |
bool | bEnableRightClickScrolling | True to allow right click drag scrolling. |
![]() |
bool | bEnableScrollAnimation | True to enable lerped animation when scrolling through the list |
![]() |
FOnListEntryGeneratedDynamic | BP_OnEntryGenerated | Called when a row widget is generated for a list item |
![]() |
FOnListEntryReleasedDynamic | BP_OnEntryReleased | Called when a row widget is released by the list (i.e. when it no longer represents a list item) |
![]() |
TSubclassOf< UUserWidget > | EntryWidgetClass | Note: Options for this property can be configured via class and property metadata. See class declaration comment above. |
![]() |
float | FixedLineScrollOffset | Optional fixed offset (in lines) to always apply to the top/left (depending on orientation) of the list. |
![]() |
TArray< TWeakObjectPtr< UUserWidget > > | GeneratedEntriesToAnnounce | Normally these are processed by UListViewBase::FinishGeneratingEntry which uses World->GetTimerManager() to generate entries next frame However when for example using a listview in editor utility widgets a world there is not reliable and an alternative is to use FTSTicker::GetCoreTicker() |
![]() |
float | WheelScrollMultiplier | The multiplier to apply when wheel scrolling |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UListViewBase
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | FinishGeneratingEntry
(
UUserWidget& GeneratedEntry |
|
![]() |
WidgetEntryT & | GenerateTypedEntry
(
TSubclassOf< WidgetEntryT > WidgetClass, |
|
![]() ![]() |
const TArray< UUserWidget * > & | Gets all of the list entry widgets currently being displayed by the list | |
![]() ![]() |
TSubclassOf< UUserWidget > | ||
![]() ![]() |
float | Get the scroll offset of this view (in items) | |
![]() ![]() |
void | HandleListEntryHovered
(
UUserWidget& EntryWidget |
|
![]() ![]() |
void | HandleListEntryUnhovered
(
UUserWidget& EntryWidget |
|
![]() |
void | HandleRowReleased
(
const TSharedRef< ITableRow >& Row |
Expected to be bound to the actual ListView widget created by a child class (automatically taken care of via the construction helpers within ITypedUMGListView) |
![]() ![]() |
void | NativeOnEntryGenerated
(
UUserWidget* EntryWidget |
|
![]() ![]() |
void | NativeOnEntryReleased
(
UUserWidget* EntryWidget |
|
![]() |
FOnListEntryGenerated & | ||
![]() |
FOnEntryWidgetReleased & | ||
![]() ![]() |
void | Called during design time to allow lists to generate preview entries via dummy data. | |
![]() ![]() |
TSharedRef< STableViewBase > | Implement in child classes to construct the actual ListView Slate widget | |
![]() |
void | RefreshDesignerItems
(
TArray< PlaceholderItemT >& ListItems, |
Helper intended to be called by overrides of OnRefreshDesignerItems. |
![]() |
void | Full regeneration of all entries in the list. | |
![]() |
void | Sets the list to refresh on the next tick. | |
![]() |
void | Scroll the entire list down to the bottom-most item | |
![]() |
void | ScrollToTop () |
Scroll the entire list up to the first item |
![]() |
void | SetScrollbarVisibility
(
ESlateVisibility InVisibility |
|
![]() |
void | SetScrollOffset
(
const float InScrollOffset |
Set the scroll offset of this view (in items) |
![]() |
void | SetWheelScrollMultiplier
(
float NewWheelScrollMultiplier |
Overridden from UWidget
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const FText | Gets the palette category of the widget | |
![]() ![]() |
TSharedRef< SWidget > | Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | |
![]() ![]() |
void | Applies all properties to the native widget if possible. | |
![]() ![]() ![]() |
void | ValidateCompiledDefaults
(
IWidgetCompilerLog& CompileLog |
Called at the end of Widget Blueprint compilation. |
Overridden from UVisual
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | ReleaseSlateResources
(
bool bReleaseChildren |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FOnEntryWidgetReleased | ||
![]() |
FOnListEntryGenerated |