UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DynamicEntryBox.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6
7#include "DynamicEntryBox.generated.h"
8
16UCLASS(MinimalAPI)
18{
20
21public:
22 TSubclassOf<UUserWidget> GetEntryWidgetClass() const { return EntryWidgetClass; }
23
24 template <typename WidgetT = UUserWidget>
26 {
27 TSubclassOf<UUserWidget> EntryClass = ExplicitEntryClass ? ExplicitEntryClass : EntryWidgetClass;
28 if (EntryClass && EntryClass->IsChildOf(WidgetT::StaticClass()) && IsEntryClassValid(EntryClass))
29 {
30 return Cast<WidgetT>(CreateEntryInternal(EntryClass));
31 }
32 return nullptr;
33 }
34
35 template <typename WidgetT = UUserWidget>
37 {
38 for (UUserWidget* EntryWidget : GetAllEntries())
39 {
40 if (WidgetT* TypedEntry = Cast<WidgetT>(EntryWidget))
41 {
43 }
44 }
45
47 }
48
50 UFUNCTION(BlueprintCallable, Category = DynamicEntryBox)
51 UMG_API void Reset(bool bDeleteWidgets = false);
52
53 UFUNCTION(BlueprintCallable, Category = DynamicEntryBox)
54 UMG_API void RemoveEntry(UUserWidget* EntryWidget);
55
56 //~ Begin UWidget Interface
57#if WITH_EDITOR
58 UMG_API virtual void ValidateCompiledDefaults(class IWidgetCompilerLog& CompileLog) const override;
59#endif
60 //~ End UWidget Interface
61
62#if WITH_EDITORONLY_DATA
63 UPROPERTY(EditAnywhere, Category = DynamicEntryBox, meta = (ClampMin = 0, ClampMax = 20))
65
71#endif
72
73 UMG_API virtual void SynchronizeProperties() override;
74
75private:
77 UFUNCTION(BlueprintCallable, Category = DynamicEntryBox, meta = (DisplayName = "Create Entry", AllowPrivateAccess = true))
78 UMG_API UUserWidget* BP_CreateEntry();
79
81 UFUNCTION(BlueprintCallable, Category = DynamicEntryBox, meta = (DisplayName = "Create Entry of Class", AllowPrivateAccess = true, DeterminesOutputType = "EntryClass"))
82 UMG_API UUserWidget* BP_CreateEntryOfClass(TSubclassOf<UUserWidget> EntryClass);
83
88 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = EntryLayout, meta = (AllowPrivateAccess = true))
89 TSubclassOf<UUserWidget> EntryWidgetClass;
90
91 // Let the details customization manipulate us directly
92 friend class FDynamicEntryBoxDetails;
93};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
return true
Definition ExternalRpcRegistry.cpp:601
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition AssetRegistryState.h:50
Definition AndroidPlatformMisc.h:14
Definition SubclassOf.h:30
Definition DynamicEntryBoxBase.h:33
Definition DynamicEntryBox.h:18
WidgetT * CreateEntry(const TSubclassOf< WidgetT > &ExplicitEntryClass={})
Definition DynamicEntryBox.h:25
TSubclassOf< UUserWidget > GetEntryWidgetClass() const
Definition DynamicEntryBox.h:22
void Reset(TFunctionRef< void(WidgetT &)> ResetEntryFunc, bool bDeleteWidgets=false)
Definition DynamicEntryBox.h:36
Definition UserWidget.h:284