UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IUserListEntry.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "UObject/Interface.h"
7#include "IUserListEntry.generated.h"
8
9class UUserWidget;
10class UListViewBase;
11class IObjectTableRow;
12enum class EItemDropZone;
13enum class EUMGItemDropZone : uint8;
21UINTERFACE(BlueprintType, MinimalAPI)
26
28{
30public:
32 UMG_API bool IsListItemSelected() const;
33
35 UMG_API bool IsListItemExpanded() const;
36
39
45 virtual bool IsListItemSelectable() const { return true; }
46
47public:
50 static UMG_API void UpdateItemSelection(UUserWidget& ListEntryWidget, bool bIsSelected);
51 static UMG_API void UpdateItemExpansion(UUserWidget& ListEntryWidget, bool bIsExpanded);
57
58protected:
63 UMG_API virtual void NativeOnItemSelectionChanged(bool bIsSelected);
64 UMG_API virtual void NativeOnItemExpansionChanged(bool bIsExpanded);
65 UMG_API virtual void NativeOnEntryReleased();
66
68 UFUNCTION(BlueprintImplementableEvent, Category = UserListEntry, meta = (DisplayName = "On Item Selection Changed"))
69 UMG_API void BP_OnItemSelectionChanged(bool bIsSelected);
70
72 UFUNCTION(BlueprintImplementableEvent, Category = UserListEntry, meta = (DisplayName = "On Item Expansion Changed"))
73 UMG_API void BP_OnItemExpansionChanged(bool bIsExpanded);
74
76 UFUNCTION(BlueprintImplementableEvent, Category = UserListEntry, meta = (DisplayName = "On Entry Released"))
78
80 UFUNCTION(BlueprintImplementableEvent, Category = UserListEntry, meta = (DisplayName = "On Update Entry Drop Indicator"))
82
84 UFUNCTION(BlueprintImplementableEvent, Category = UserListEntry, meta = (DisplayName = "On Entry Drag Over Changed"))
86
88 UFUNCTION(BlueprintImplementableEvent, Category = UserListEntry, meta = (DisplayName = "On Entry Accept Drop"))
90
92 UFUNCTION(BlueprintImplementableEvent, Category = UserListEntry, meta = (DisplayName = "On Entry Dropped"))
94
96 UFUNCTION(BlueprintImplementableEvent, Category = UserListEntry, meta = (DisplayName = "On Entry Dragged"))
98
99};
100
102UCLASS(MinimalAPI)
104{
106
107public:
112 UFUNCTION(BlueprintPure, Category = UserListEntry, meta = (DefaultToSelf = UserListEntry))
114
119 UFUNCTION(BlueprintPure, Category = UserListEntry, meta = (DefaultToSelf = UserListEntry))
121
126 UFUNCTION(BlueprintPure, Category = UserListEntry, meta = (DefaultToSelf = UserListEntry))
128};
bool bSuccess
Definition ConvexDecomposition3.cpp:819
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EUMGItemDropZone
Definition DragDropOperation.h:21
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define UINTERFACE(...)
Definition ObjectMacros.h:780
#define GENERATED_IINTERFACE_BODY(...)
Definition ObjectMacros.h:770
#define GENERATED_UINTERFACE_BODY(...)
Definition ObjectMacros.h:769
#define UCLASS(...)
Definition ObjectMacros.h:776
EItemDropZone
Definition STableRow.h:59
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition Interface.h:25
Definition SObjectTableRow.h:18
Definition IUserListEntry.h:28
UMG_API void BP_OnUpdateEntryDropIndicator(EUMGItemDropZone DropZone)
UMG_API void BP_OnEntryDragged(UDragDropOperation *Operation)
UMG_API bool IsListItemExpanded() const
Definition IUserListEntry.cpp:99
virtual UMG_API void NativeOnEntryReleased()
Definition IUserListEntry.cpp:109
static UMG_API void UpdateEntryDragOverState(UUserWidget &ListEntryWidget, bool bIsDraggingOver)
Definition IUserListEntry.cpp:62
static UMG_API void HandleEntryDropped(UUserWidget &ListEntryWidget, UDragDropOperation *Operation)
Definition IUserListEntry.cpp:86
UMG_API void BP_OnEntryDragOverChanged(bool bIsDraggingOver)
UMG_API bool IsListItemSelected() const
Definition IUserListEntry.cpp:94
virtual bool IsListItemSelectable() const
Definition IUserListEntry.h:45
UMG_API void BP_OnItemExpansionChanged(bool bIsExpanded)
UMG_API void BP_OnEntryReleased()
static UMG_API void UpdateItemSelection(UUserWidget &ListEntryWidget, bool bIsSelected)
Definition IUserListEntry.cpp:30
static UMG_API void UpdateItemExpansion(UUserWidget &ListEntryWidget, bool bIsExpanded)
Definition IUserListEntry.cpp:42
UMG_API void BP_OnItemSelectionChanged(bool bIsSelected)
static UMG_API void EndEntryDropOperation(UUserWidget &ListEntryWidget, bool bSuccess)
Definition IUserListEntry.cpp:70
virtual UMG_API void NativeOnItemSelectionChanged(bool bIsSelected)
Definition IUserListEntry.cpp:114
UMG_API void BP_OnEndEntryDropOperation(bool bSuccess)
UMG_API UListViewBase * GetOwningListView() const
Definition IUserListEntry.cpp:104
static UMG_API void ReleaseEntry(UUserWidget &ListEntryWidget)
Definition IUserListEntry.cpp:18
virtual UMG_API void NativeOnItemExpansionChanged(bool bIsExpanded)
Definition IUserListEntry.cpp:119
UMG_API void BP_OnEntryDropped(UDragDropOperation *Operation)
static UMG_API void HandleEntryDragged(UUserWidget &ListEntryWidget, UDragDropOperation *Operation)
Definition IUserListEntry.cpp:78
static UMG_API void UpdateEntryDropIndicator(UUserWidget &ListEntryWidget, TOptional< EItemDropZone > DropZone)
Definition IUserListEntry.cpp:54
Definition ScriptInterface.h:139
Definition BlueprintFunctionLibrary.h:16
Definition DragDropOperation.h:55
Definition Interface.h:19
Definition ListViewBase.h:546
Definition IUserListEntry.h:104
Definition IUserListEntry.h:23
Definition UserWidget.h:284
Definition Optional.h:131