|
| | DECLARE_MULTICAST_DELEGATE_OneParam (FSimpleListItemEvent, ItemType) |
| |
| virtual FSimpleListItemEvent & | OnItemClicked () const =0 |
| |
| virtual FSimpleListItemEvent & | OnItemDoubleClicked () const =0 |
| |
| virtual FSimpleListItemEvent & | OnItemDragDetected () const =0 |
| |
| virtual FSimpleListItemEvent & | OnItemAcceptDrop () const =0 |
| |
| virtual FSimpleListItemEvent & | OnItemDragEnter () const =0 |
| |
| virtual FSimpleListItemEvent & | OnItemDragLeave () const =0 |
| |
| | DECLARE_MULTICAST_DELEGATE_OneParam (FOnItemDragCancelled, const FDragDropEvent &) |
| |
| virtual FOnItemDragCancelled & | OnItemDragCancelled () const =0 |
| |
| | DECLARE_MULTICAST_DELEGATE_TwoParams (FOnItemCanAcceptDrop, ItemType, bool) |
| |
| virtual FOnItemCanAcceptDrop & | OnItemCanAcceptDrop () const =0 |
| |
| | DECLARE_MULTICAST_DELEGATE_TwoParams (FOnItemIsHoveredChanged, ItemType, bool) |
| |
| virtual FOnItemIsHoveredChanged & | OnItemIsHoveredChanged () const =0 |
| |
| | DECLARE_MULTICAST_DELEGATE_OneParam (FOnItemSelectionChanged, NullableItemType) |
| |
| virtual FOnItemSelectionChanged & | OnItemSelectionChanged () const =0 |
| |
| | DECLARE_MULTICAST_DELEGATE_TwoParams (FOnListViewScrolled, float, float) |
| |
| virtual FOnListViewScrolled & | OnListViewScrolled () const =0 |
| |
| | DECLARE_MULTICAST_DELEGATE (FOnFinishedScrolling) |
| |
| virtual FOnFinishedScrolling & | OnFinishedScrolling () const =0 |
| |
| | DECLARE_MULTICAST_DELEGATE_TwoParams (FOnItemScrolledIntoView, ItemType, UUserWidget &) |
| |
| virtual FOnItemScrolledIntoView & | OnItemScrolledIntoView () const =0 |
| |
| | DECLARE_MULTICAST_DELEGATE_TwoParams (FOnItemExpansionChanged, ItemType, bool) |
| |
| virtual FOnItemExpansionChanged & | OnItemExpansionChanged () const =0 |
| |
| | DECLARE_DELEGATE_RetVal_OneParam (TSubclassOf< UUserWidget >, FOnGetEntryClassForItem, ItemType) |
| |
| virtual FOnGetEntryClassForItem & | OnGetEntryClassForItem () const =0 |
| |
| virtual TSubclassOf< UUserWidget > | GetDefaultEntryClass () const =0 |
| |
| | DECLARE_DELEGATE_RetVal_OneParam (bool, FOnIsItemSelectableOrNavigable, ItemType) |
| |
| virtual FOnIsItemSelectableOrNavigable & | OnIsItemSelectableOrNavigable () const =0 |
| |
| virtual TSubclassOf< UUserWidget > | GetDesiredEntryClassForItem (ItemType Item) const |
| |
| NullableItemType | GetSelectedItem () const |
| |
| const TObjectPtrWrapTypeOf< ItemType > * | ItemFromEntryWidget (const UUserWidget &EntryWidget) const |
| |
| template<typename RowWidgetT = UUserWidget> |
| RowWidgetT * | GetEntryWidgetFromItem (const ItemType &Item) const |
| |
| int32 | GetIndexInList (const ItemType &Item) const |
| |
| int32 | GetSelectedItems (TArray< ItemType > &OutSelectedItems) const |
| |
| int32 | GetNumItemsSelected () const |
| |
| void | SetSelectedItem (const ItemType &SoleSelectedItem, ESelectInfo::Type SelectInfo=ESelectInfo::Direct) |
| |
| void | SetItemSelection (const ItemType &Item, bool bIsSelected, ESelectInfo::Type SelectInfo=ESelectInfo::Direct) |
| |
| void | ClearSelection () |
| |
| bool | IsItemVisible (const ItemType &Item) const |
| |
| bool | IsItemSelected (const ItemType &Item) const |
| |
| void | RequestNavigateToItem (const ItemType &Item) |
| |
| void | RequestScrollItemIntoView (const ItemType &Item) |
| |
| void | CancelScrollIntoView () |
| |
template<
typename ItemType>
class ITypedUMGListView< ItemType >
Mirrored SListView<T> API for easier interaction with a bound UListViewBase widget See declarations on SListView for more info on each function and event
Note that, being a template class, this is not a UClass and therefore cannot be exposed to Blueprint. If you are using UObject* items, just use (or inherit from) UListView directly Otherwise, it is up to the child class to propagate events and/or expose functions to BP as needed
Use the IMPLEMENT_TYPED_UMG_LIST() macro for the implementation boilerplate in your implementing class.
- See also
- UListView for an implementation example.