Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Widgets/Views/SListView.h |
Include |
#include "Widgets/Views/SListView.h" |
class FWidgetGenerator
A WidgetGenerator is a component responsible for creating widgets from data items. It also provides mapping from currently generated widgets to the data items which they represent.
Name | Description | ||
---|---|---|---|
|
TArray< ItemTyp... |
ItemsToBeCleanedUp |
Items that need their widgets destroyed because they are no longer on screen. |
|
TArray< ItemTyp... |
ItemsWithGeneratedWidgets |
A set of Items that currently have a generated widget |
|
TMap< ItemType,... |
ItemToWidgetMap |
Map of DataItems to corresponding SWidgets |
|
SListView< Item... |
OwnerList |
We store a pointer to the owner list for error purposes, so when asserts occur we can report which list it happened for. |
|
TotalItemsLastGeneration |
Total number of DataItems the last time we performed a generation pass. |
|
|
WidgetMapToItem |
Map of SWidgets to DataItems from which they were generated |
Name | Description | |
---|---|---|
|
FWidgetGenerator ( |
Name | Description | ||
---|---|---|---|
|
Clear() |
Clear everything so widgets will be regenerated |
|
|
TSharedPtr< ... |
GetWidgetForItem ( |
Find a widget for this item if it has already been constructed. |
|
OnBeginGenerationPass() |
Called at the beginning of the generation pass. |
|
|
OnEndGenerationPass() |
Called at the end of the generation pass. |
|
|
OnItemSeen ( |
Keep track of every item and corresponding widget during a generation pass. |
|
|
ProcessItemCleanUp() |
||
|
ValidateWidgetGeneration() |