UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ReplyBase.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
7class SWidget;
8
15{
16public:
17
19 bool IsEventHandled() const { return bIsHandled; }
20
23
24protected:
25
31
34
37};
38
39template<typename ReplyType>
40class TReplyBase : public FReplyBase
41{
42public:
45 {
46 }
47
48protected:
49 friend class FEventRouter;
50
53 {
54 this->EventHandler = InHandler;
55 return Me();
56 }
57
60 {
61 return static_cast<ReplyType&>(*this);
62 }
63};
64
66class FNoReply : public TReplyBase<FNoReply>
67{
68public:
69 static FNoReply Unhandled(){ return FNoReply(); }
71};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition SlateApplication.cpp:239
Definition ReplyBase.h:67
FNoReply()
Definition ReplyBase.h:70
static FNoReply Unhandled()
Definition ReplyBase.h:69
Definition ReplyBase.h:15
bool bIsHandled
Definition ReplyBase.h:33
const TSharedPtr< SWidget > GetHandler() const
Definition ReplyBase.h:22
TSharedPtr< SWidget > EventHandler
Definition ReplyBase.h:36
bool IsEventHandled() const
Definition ReplyBase.h:19
FReplyBase(bool InIsHandled)
Definition ReplyBase.h:27
Definition SWidget.h:165
Definition ReplyBase.h:41
ReplyType & Me()
Definition ReplyBase.h:59
TReplyBase(bool bIsHandled)
Definition ReplyBase.h:43
ReplyType & SetHandler(const TSharedRef< SWidget > &InHandler)
Definition ReplyBase.h:52
Definition SharedPointer.h:692
Definition SharedPointer.h:153
@ false
Definition radaudio_common.h:23