UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SNotificationList.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Misc/Attribute.h"
8#include "Layout/Visibility.h"
12#include "Styling/SlateTypes.h"
14
16class SVerticalBox;
17class SWindow;
18
24 : public SCompoundWidget
25{
26public:
34
36 virtual void SetText(const TAttribute< FText >& InText) = 0;
37
39 virtual void SetSubText(const TAttribute<FText>& InSubText) = 0;
40
43
45 virtual void SetExpireDuration(float ExpireDuration) = 0;
46
48 virtual void SetFadeInDuration(float FadeInDuration) = 0;
49
51 virtual void SetFadeOutDuration(float FadeOutDuration) = 0;
52
55
57 virtual void SetCompletionState(ECompletionState State) = 0;
58
60 virtual void ExpireAndFadeout() = 0;
61
63 virtual void Fadeout() = 0;
64
66 virtual void Pulse(const FLinearColor& GlowColor) = 0;
67};
68
69
74{
77
89
101
112
121};
122
123
128{
135 : ContentWidget(),
136 Text(InText),
137 SubText(),
139 Image(nullptr),
140 FadeInDuration(0.5f),
141 FadeOutDuration(2.0f),
142 ExpireDuration(1.0f),
147 WidthOverride(320.0f),
151 CheckBoxText(),
152 Hyperlink(),
153 HyperlinkText( NSLOCTEXT("EditorNotification", "DefaultHyperlinkText", "Show Log") ),
155 { };
156
184
189 UE_DEPRECATED(5.6, "Use the flag bUseCopyToClipboard instead.")
191
194
197
200
203
206
209
212
215
218
221
224
227
230
233
236
239
242
245
248
251
254};
255
256
262{
265
266public:
267
270
271
276 SLATE_API void Construct( const FArguments& InArgs );
277
284
286
292 SLATE_API virtual void NotificationItemFadedOut (const TSharedRef<SNotificationItem>& NotificationItem);
293
295
297 TSharedPtr<SVerticalBox> MessageItemBoxPtr;
298
300 TWeakPtr<SWindow> ParentWindowPtr;
301
303 bool bDone;
304
305private:
306
308 TSharedPtr<SNotificationItem> LastNotification;
309
310};
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define SLATE_END_ARGS()
Definition DeclarativeSyntaxSupport.h:116
return true
Definition ExternalRpcRegistry.cpp:601
#define NSLOCTEXT(InNamespace, InKey, InTextLiteral)
Definition Internationalization.h:300
const bool
Definition NetworkReplayStreaming.h:178
void Construct(const FArguments &InArgs)
ECheckBoxState
Definition SlateTypes.h:65
UE_INTRINSIC_CAST UE_REWRITE constexpr std::remove_reference_t< T > && MoveTemp(T &&Obj) noexcept
Definition UnrealTemplate.h:520
Definition NotificationManager.h:77
Definition Text.h:385
Definition INotificationWidget.h:10
Definition SCompoundWidget.h:22
Definition SNotificationList.cpp:31
Definition SNotificationList.h:25
virtual void ExpireAndFadeout()=0
ECompletionState
Definition SNotificationList.h:28
@ CS_Fail
Definition SNotificationList.h:32
@ CS_Success
Definition SNotificationList.h:31
@ CS_None
Definition SNotificationList.h:29
@ CS_Pending
Definition SNotificationList.h:30
virtual void SetSubText(const TAttribute< FText > &InSubText)=0
virtual void SetFadeInDuration(float FadeInDuration)=0
virtual void Pulse(const FLinearColor &GlowColor)=0
virtual void SetFadeOutDuration(float FadeOutDuration)=0
virtual void SetExpireDuration(float ExpireDuration)=0
virtual void Fadeout()=0
virtual void SetHyperlink(const FSimpleDelegate &InHyperlink, const TAttribute< FText > &InHyperlinkText=TAttribute< FText >())=0
virtual void SetText(const TAttribute< FText > &InText)=0
virtual void SetCompletionState(ECompletionState State)=0
virtual ECompletionState GetCompletionState() const =0
Definition SNotificationList.h:262
SLATE_BEGIN_ARGS(SNotificationList)
Definition SNotificationList.h:268
Definition SBoxPanel.h:322
Definition SWindow.h:243
Definition Array.h:670
Definition SharedPointer.h:692
Definition SharedPointer.h:153
Definition SharedPointer.h:1295
@ false
Definition radaudio_common.h:23
Definition Visibility.h:12
Definition Color.h:48
Definition SNotificationList.h:74
TDelegate< bool(SNotificationItem::ECompletionState)> FIsEnabledDelegate
Definition SNotificationList.h:76
FSimpleDelegate Callback
Definition SNotificationList.h:107
EVisibility VisibilityOnSuccess
Definition SNotificationList.h:118
TAttribute< FText > Text
Definition SNotificationList.h:103
TAttribute< FText > ToolTip
Definition SNotificationList.h:105
FVisibilityDelegate VisibilityCallback
Definition SNotificationList.h:109
FNotificationButtonInfo(const TAttribute< FText > &InText, const TAttribute< FText > &InToolTip, FSimpleDelegate InCallback, FVisibilityDelegate InVisibilityCallback, FIsEnabledDelegate InIsEnabledCallback=FIsEnabledDelegate())
Definition SNotificationList.h:90
FNotificationButtonInfo(const TAttribute< FText > &InText, const TAttribute< FText > &InToolTip, FSimpleDelegate InCallback, SNotificationItem::ECompletionState VisibleInState=SNotificationItem::CS_Pending)
Definition SNotificationList.h:78
EVisibility VisibilityOnPending
Definition SNotificationList.h:116
EVisibility VisibilityOnFail
Definition SNotificationList.h:120
FIsEnabledDelegate IsEnabledCallback
Definition SNotificationList.h:111
EVisibility VisibilityOnNone
Definition SNotificationList.h:114
Definition SNotificationList.h:128
TSharedPtr< SWindow > ForWindow
Definition SNotificationList.h:250
TSharedPtr< INotificationWidget > ContentWidget
Definition SNotificationList.h:193
bool bUseCopyToClipboard
Definition SNotificationList.h:226
const FSlateBrush * Image
Definition SNotificationList.h:205
FNotificationInfo(const FText &InText)
Definition SNotificationList.h:134
TAttribute< FText > HyperlinkText
Definition SNotificationList.h:247
TAttribute< FText > Text
Definition SNotificationList.h:196
bool bUseLargeFont
Definition SNotificationList.h:223
FOnCheckStateChanged CheckBoxStateChanged
Definition SNotificationList.h:238
TAttribute< FText > CheckBoxText
Definition SNotificationList.h:241
FOptionalSize WidthOverride
Definition SNotificationList.h:229
float FadeOutDuration
Definition SNotificationList.h:211
bool bUseSuccessFailIcons
Definition SNotificationList.h:220
bool bFireAndForget
Definition SNotificationList.h:232
bool bUseThrobber
Definition SNotificationList.h:217
FNotificationInfo(TSharedPtr< INotificationWidget > InContentWidget)
Definition SNotificationList.h:162
bool bAllowThrottleWhenFrameRateIsLow
Definition SNotificationList.h:253
float FadeInDuration
Definition SNotificationList.h:208
float ExpireDuration
Definition SNotificationList.h:214
TArray< FNotificationButtonInfo > ButtonDetails
Definition SNotificationList.h:202
SLATE_API void ShowCopyToClipboadHyperlink()
Definition SNotificationList.cpp:829
TAttribute< FText > SubText
Definition SNotificationList.h:199
FSimpleDelegate Hyperlink
Definition SNotificationList.h:244
TAttribute< ECheckBoxState > CheckBoxState
Definition SNotificationList.h:235
Definition SlateStructs.h:13
Definition SlateBrush.h:239