![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IItemsSource.h>
Inheritance diagram for UE::Slate::ItemsSource::FObservableArrayPointer< InItemType >:Public Types | |
| using | WidgetType = STableViewBase |
| using | ItemType = InItemType |
Public Member Functions | |
| FObservableArrayPointer (TSharedRef< WidgetType > InListView, ::UE::Slate::Containers::TObservableArray< ItemType > *InItemsSource) | |
| virtual | ~FObservableArrayPointer () |
| virtual const TArrayView< const ItemType > | GetItems () const override |
| virtual bool | IsSame (const void *RawPointer) const override |
Public Member Functions inherited from UE::Slate::ItemsSource::IItemsSource< InItemType > | |
| virtual | ~IItemsSource ()=default |
| using UE::Slate::ItemsSource::FObservableArrayPointer< InItemType >::ItemType = InItemType |
| using UE::Slate::ItemsSource::FObservableArrayPointer< InItemType >::WidgetType = STableViewBase |
|
inlineexplicit |
|
inlinevirtual |
This is likely due to class SMyWidget : SCoumpoundWidget { TObservableArray<TSharedPtr<int32>> MyArray; SListView<TSharedPtr<int32>> MyList; void Construct(const FArguments&) { MyList = SNew(SListView<TSharedPtr<int32>>) .ItemsSource(&MyArray); } virtual ~SMyWidget() { // Remove the source to clear the binding before the ~SListView is called on MyList. MyList->SetItemsSource(nullptr); } }; If you can do this pattern, uses a TSharedPtr<TObservableArray<TSharedPtr<>> instead.
|
inlineoverridevirtual |
Returns all the items in the source.
Implements UE::Slate::ItemsSource::IItemsSource< InItemType >.
|
inlineoverridevirtual |
Test if the source has the same origin.
Implements UE::Slate::ItemsSource::IItemsSource< InItemType >.