UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ConsoleSlateDebugger.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5
7
8#if WITH_SLATE_DEBUGGING
9
10#include "CoreMinimal.h"
12#include "Delegates/Delegate.h"
13#include "Input/Reply.h"
14#include "HAL/IConsoleManager.h"
15
26{
27public:
29 virtual ~FConsoleSlateDebugger();
30
31 void StartDebugging();
32 void StopDebugging();
33 bool IsEnabled() const { return bEnabled; }
34
35protected:
36 //~ Begin IWidgetInputRoutingEvent interface
37 virtual void OnProcessInput(ESlateDebuggingInputEvent InputEventType, const FInputEvent& Event) override;
38 virtual void OnPreProcessInput(ESlateDebuggingInputEvent InputEventType, const TCHAR* InputPrecessor, bool bHandled) override;
39 virtual void OnRouteInput(ESlateDebuggingInputEvent InputEventType, const FName& RoutedType) override;
40 virtual void OnInputEvent(ESlateDebuggingInputEvent InputEventType, const FReply& InReply, const TSharedPtr<SWidget>& HandlerWidget) override;
41 virtual void OnInputRouted(ESlateDebuggingInputEvent InputEventType) override;
42 virtual void OnInputProcessed(ESlateDebuggingInputEvent InputEventType) override;
43 //~ End IWidgetInputRoutingEvent interface
44
45private:
46
47 void RemoveListeners();
48 void UpdateListeners();
49
51
52 void SetInputFilter(const TArray< FString >& Parms);
53 void ClearInputFilters();
54 void EnableInputFilters();
55 void SetFocusFilter(const TArray< FString >& Parms);
56 void ClearFocusFilters();
57 void EnableFocusFilters();
58
66
68
69private:
71 bool bEnabled;
72
74 bool bLogWarning;
75 bool bLogInputEvent;
76 bool bLogFocusEvent;
81
83 bool bCaptureStack;
84
87
88 //* Routing Counter */
91
95
96 //~ Console objects
116};
117
118#endif //WITH_SLATE_DEBUGGING
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
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
ESlateDebuggingInputEvent
Definition SlateDebugging.h:43
Definition IConsoleManager.h:2026
Definition IConsoleManager.h:1580
Definition NameTypes.h:617
Definition Reply.h:24
Definition IConsoleManager.h:558
Definition SharedPointer.h:692
bool IsEnabled()
Definition IAudioLinkFactory.cpp:13
Definition Events.h:155
Definition SlateDebugging.h:106
Definition SlateDebugging.h:191
Definition SlateDebugging.h:149
Definition SlateDebugging.h:92
Definition SlateDebugging.h:210
Definition SlateDebugging.h:171
Definition SlateDebugging.h:196
Definition SlateDebugging.h:369
virtual void OnProcessInput(ESlateDebuggingInputEvent InputEventType, const FInputEvent &Event)=0
virtual void OnInputProcessed(ESlateDebuggingInputEvent InputEventType)=0
virtual void OnInputEvent(ESlateDebuggingInputEvent InputEventType, const FReply &InReply, const TSharedPtr< SWidget > &HandlerWidget)=0
virtual void OnRouteInput(ESlateDebuggingInputEvent InputEventType, const FName &RoutedType)=0
virtual void OnPreProcessInput(ESlateDebuggingInputEvent InputEventType, const TCHAR *InputPrecessorName, bool bHandled)=0
virtual void OnInputRouted(ESlateDebuggingInputEvent InputEventType)=0