13#include "SlateDebugging.generated.h"
15#ifndef WITH_SLATE_DEBUGGING
16 #define WITH_SLATE_DEBUGGING !(UE_BUILD_SHIPPING || UE_BUILD_TEST)
19#ifndef SLATE_CSV_TRACKER
20 #define SLATE_CSV_TRACKER CSV_PROFILER_STATS
24#ifndef UE_WITH_SLATE_DEBUG_WIDGETLIST
25 #define UE_WITH_SLATE_DEBUG_WIDGETLIST UE_SLATE_WITH_MEMBER_ATTRIBUTE_DEBUGGING
145#if WITH_SLATE_DEBUGGING
244 const SWidget* WidgetInvalidated,
245 const SWidget* WidgetInvalidateInvestigator,
249 const SWidget* WidgetInvalidated,
250 const SWidget* WidgetInvalidateInvestigator,
315 UE_DEPRECATED(5.2,
"FSlateDebugging::ElementAdded is deprecated, use FSlateDebugging::ElementTypeAdded instead")
444 struct FLastCursorQuery
446 const SWidget* WidgetThatOverrideCursorLast_UnsafeToUseForAnythingButCompare =
nullptr;
450 static FLastCursorQuery LastCursorQuery;
#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 DECLARE_MULTICAST_DELEGATE_TwoParams(DelegateName, Param1Type, Param2Type)
Definition DelegateCombinations.h:58
#define DECLARE_MULTICAST_DELEGATE_OneParam(DelegateName, Param1Type)
Definition DelegateCombinations.h:49
EElementType
Definition DrawElementCoreTypes.h:35
#define ENUM_CLASS_FLAGS(Enum)
Definition EnumClassFlags.h:6
#define UENUM(...)
Definition ObjectMacros.h:749
SLATECORE_API FString LexToString(ESlateDebuggingInvalidateRootReason Reason)
ESlateDebuggingStateChangeEvent
Definition SlateDebugging.h:75
SLATECORE_API void LexFromString(ESlateDebuggingInvalidateRootReason &OutMode, const TCHAR *InBuffer)
ESlateDebuggingNavigationMethod
Definition SlateDebugging.h:82
SLATECORE_API bool LexTryParseString(ESlateDebuggingInvalidateRootReason &OutMode, const TCHAR *InBuffer)
ESlateDebuggingFocusEvent
Definition SlateDebugging.h:137
ESlateDebuggingInputEvent
Definition SlateDebugging.h:43
ESlateDebuggingInvalidateRootReason
Definition SlateDebugging.h:228
Definition CursorReply.h:16
Definition NameTypes.h:617
Definition NavigationReply.h:43
Definition PaintArgs.h:23
Definition SlateDebugging.h:281
static SLATECORE_API void BroadcastInputEvent(ESlateDebuggingInputEvent InputEventType, const FInputEvent *InInputEvent, const FReply &InReply)
static SLATECORE_API FDrawElementType ElementTypeAdded
Definition SlateDebugging.h:326
static SLATECORE_API void BroadcastExecuteNavigation()
static SLATECORE_API void BroadcastWidgetInvalidate(const SWidget *WidgetInvalidated, const SWidget *WidgetInvalidateInvestigator, EInvalidateWidgetReason InvalidateReason)
static SLATECORE_API const TArray< const SWidget * > & GetAllWidgets()
DECLARE_MULTICAST_DELEGATE_OneParam(FBeginWindow, const FSlateWindowElementList &)
static SLATECORE_API FBeginWindow BeginWindow
Definition SlateDebugging.h:285
static SLATECORE_API void RegisterWidgetInputRoutingEvent(IWidgetInputRoutingEvent *Event)
static SLATECORE_API void BroadcastCursorQuery(TSharedPtr< const SWidget > InWidgetOverridingCursor, const FCursorReply &InReply)
DECLARE_MULTICAST_DELEGATE_OneParam(FWidgetCursorQuery, const FSlateDebuggingCursorQueryEventArgs &)
static SLATECORE_API FWidgetInputEvent InputEvent
Definition SlateDebugging.h:337
SLATECORE_API static PRAGMA_DISABLE_DEPRECATION_WARNINGS FDrawElement ElementAdded
Definition SlateDebugging.h:318
static SLATECORE_API FWidgetMouseCaptureEvent MouseCaptureEvent
Definition SlateDebugging.h:406
static SLATECORE_API void BroadcastInvalidationRootInvalidate(const SWidget *WidgetInvalidated, const SWidget *WidgetInvalidateInvestigator, ESlateDebuggingInvalidateRootReason InvalidateReason)
DECLARE_MULTICAST_DELEGATE_OneParam(FBeginWidgetPrepass, const SWidget *)
DECLARE_MULTICAST_DELEGATE_FourParams(FPaintDebugElements, const FPaintArgs &, const FGeometry &, FSlateWindowElementList &, int32 &)
static SLATECORE_API FWidgetUpdatedEvent WidgetUpdatedEvent
Definition SlateDebugging.h:426
DECLARE_MULTICAST_DELEGATE_OneParam(FWidgetUpdatedEvent, const FSlateDebuggingWidgetUpdatedEventArgs &)
static SLATECORE_API void BroadcastFocusReceived(const FFocusEvent &InFocusEvent, const FWeakWidgetPath &InOldFocusedWidgetPath, const TSharedPtr< SWidget > &InOldFocusedWidget, const FWidgetPath &InNewFocusedWidgetPath, const TSharedPtr< SWidget > &InNewFocusedWidget)
static SLATECORE_API FWidgetAttemptNavigationEvent AttemptNavigationEvent
Definition SlateDebugging.h:393
static SLATECORE_API void BroadcastMouseCapture(uint32 UserIndex, uint32 PointerIndex, TSharedPtr< const SWidget > InCapturingWidget)
static SLATECORE_API FWidgetWarningEvent Warning
Definition SlateDebugging.h:331
static SLATECORE_API void BroadcastMouseCaptureLost(uint32 UserIndex, uint32 PointerIndex, TSharedPtr< const SWidget > InWidgetLostCapture)
DECLARE_MULTICAST_DELEGATE_OneParam(FWidgetAttemptNavigationEvent, const FSlateDebuggingNavigationEventArgs &)
static SLATECORE_API FEndWidgetPrepass EndWidgetPrepass
Definition SlateDebugging.h:305
static SLATECORE_API FPaintDebugElements PaintDebugElements
Definition SlateDebugging.h:309
static SLATECORE_API void BroadcastPreProcessInputEvent(ESlateDebuggingInputEvent InputEventType, const TCHAR *InputPrecessorName, bool bHandled)
static SLATECORE_API FEndWindow EndWindow
Definition SlateDebugging.h:289
static SLATECORE_API void BroadcastWidgetUpdatedByPaint(const SWidget *Invalidated, EWidgetUpdateFlags UpdateFlags)
static SLATECORE_API FUICommandRun CommandRun
Definition SlateDebugging.h:434
static SLATECORE_API void ExportWidgetList(FStringView Filename)
DECLARE_MULTICAST_DELEGATE_OneParam(FWidgetExecuteNavigationEvent, const FSlateDebuggingExecuteNavigationEventArgs &)
DECLARE_MULTICAST_DELEGATE_TwoParams(FUICommandRun, const FName &, const FText &)
static SLATECORE_API void BroadcastWarning(const FText &WarningText, const TSharedPtr< SWidget > &OptionalContextWidget)
static SLATECORE_API void BroadcastFocusLost(const FFocusEvent &InFocusEvent, const FWeakWidgetPath &InOldFocusedWidgetPath, const TSharedPtr< SWidget > &InOldFocusedWidget, const FWidgetPath &InNewFocusedWidgetPath, const TSharedPtr< SWidget > &InNewFocusedWidget)
DECLARE_MULTICAST_DELEGATE_OneParam(FEndWidgetPrepass, const SWidget *)
static SLATECORE_API FWidgetInvalidate WidgetInvalidateEvent
Definition SlateDebugging.h:419
static SLATECORE_API void BroadcastAttemptNavigation(const FNavigationEvent &InNavigationEvent, const FNavigationReply &InNavigationReply, const FWidgetPath &InNavigationSource, const TSharedPtr< SWidget > &InDestinationWidget, ESlateDebuggingNavigationMethod InNavigationMethod)
static SLATECORE_API FBeginWidgetPrepass BeginWidgetPrepass
Definition SlateDebugging.h:301
static SLATECORE_API void BroadcastFocusChanging(const FFocusEvent &InFocusEvent, const FWeakWidgetPath &InOldFocusedWidgetPath, const TSharedPtr< SWidget > &InOldFocusedWidget, const FWidgetPath &InNewFocusedWidgetPath, const TSharedPtr< SWidget > &InNewFocusedWidget)
static SLATECORE_API void BroadcastWidgetUpdated(const SWidget *Invalidated, EWidgetUpdateFlags UpdateFlags)
DECLARE_MULTICAST_DELEGATE_OneParam(FWidgetFocusEvent, const FSlateDebuggingFocusEventArgs &)
DECLARE_MULTICAST_DELEGATE_OneParam(FWidgetInvalidate, const FSlateDebuggingInvalidateArgs &)
static SLATECORE_API FWidgetCursorQuery CursorChangedEvent
Definition SlateDebugging.h:413
static SLATECORE_API FWidgetExecuteNavigationEvent ExecuteNavigationEvent
Definition SlateDebugging.h:399
DECLARE_MULTICAST_DELEGATE_ThreeParams(FEndWidgetPaint, const SWidget *, const FSlateWindowElementList &, int32)
static SLATECORE_API void BroadcastNoReplyInputEvent(ESlateDebuggingInputEvent InputEventType, const FInputEvent *InInputEvent, const TSharedPtr< SWidget > &HandlerWidget)
DECLARE_MULTICAST_DELEGATE_OneParam(FEndWindow, const FSlateWindowElementList &)
DECLARE_MULTICAST_DELEGATE_SixParams(FBeginWidgetPaint, const SWidget *, const FPaintArgs &, const FGeometry &, const FSlateRect &, const FSlateWindowElementList &, int32)
static SLATECORE_API FBeginWidgetPaint BeginWidgetPaint
Definition SlateDebugging.h:293
static SLATECORE_API FWidgetFocusEvent FocusEvent
Definition SlateDebugging.h:384
static SLATECORE_API FEndWidgetPaint EndWidgetPaint
Definition SlateDebugging.h:297
static SLATECORE_API void UnregisterWidgetInputRoutingEvent(IWidgetInputRoutingEvent *Event)
DECLARE_MULTICAST_DELEGATE_OneParam(FWidgetMouseCaptureEvent, const FSlateDebuggingMouseCaptureEventArgs &)
Definition DrawElementTypes.h:46
Definition SlateInvalidationRoot.h:77
Definition SlateRect.h:26
Definition DrawElements.h:220
Definition SharedPointer.h:692
Definition SharedPointer.h:1295
UpdateFlags
Definition DetourCrowd.h:208
Type
Definition ICursor.h:18
Definition SlateDebugging.h:106
const FCursorReply & Reply
Definition SlateDebugging.h:111
SLATECORE_API FText ToText() const
SLATECORE_API FSlateDebuggingCursorQueryEventArgs(const TSharedPtr< const SWidget > &InWidgetOverridingCursor, const FCursorReply &InReply)
const TSharedPtr< const SWidget > & WidgetOverridingCursor
Definition SlateDebugging.h:110
Definition SlateDebugging.h:117
int32 ElementIndex
Definition SlateDebugging.h:129
EElementType ElementType
Definition SlateDebugging.h:132
const FSlateWindowElementList & ElementList
Definition SlateDebugging.h:126
SLATECORE_API FSlateDebuggingElementTypeAddedEventArgs(const FSlateWindowElementList &InElementList, int32 InElementIndex, EElementType InElementType)
Definition SlateDebugging.h:191
Definition SlateDebugging.h:149
SLATECORE_API FText ToText() const
const TSharedPtr< SWidget > & NewFocusedWidget
Definition SlateDebugging.h:165
const FWidgetPath & NewFocusedWidgetPath
Definition SlateDebugging.h:164
const FWeakWidgetPath & OldFocusedWidgetPath
Definition SlateDebugging.h:162
const FFocusEvent & FocusEvent
Definition SlateDebugging.h:161
const TSharedPtr< SWidget > & OldFocusedWidget
Definition SlateDebugging.h:163
SLATECORE_API FSlateDebuggingFocusEventArgs(ESlateDebuggingFocusEvent InFocusEventType, const FFocusEvent &InFocusEvent, const FWeakWidgetPath &InOldFocusedWidgetPath, const TSharedPtr< SWidget > &InOldFocusedWidget, const FWidgetPath &InNewFocusedWidgetPath, const TSharedPtr< SWidget > &InNewFocusedWidget)
ESlateDebuggingFocusEvent FocusEventType
Definition SlateDebugging.h:160
Definition SlateDebugging.h:242
const SWidget * WidgetInvalidateInvestigator
Definition SlateDebugging.h:254
EInvalidateWidgetReason InvalidateWidgetReason
Definition SlateDebugging.h:255
ESlateDebuggingInvalidateRootReason InvalidateInvalidationRootReason
Definition SlateDebugging.h:256
SLATECORE_API FSlateDebuggingInvalidateArgs(const SWidget *WidgetInvalidated, const SWidget *WidgetInvalidateInvestigator, ESlateDebuggingInvalidateRootReason InvalidateReason)
SLATECORE_API FSlateDebuggingInvalidateArgs(const SWidget *WidgetInvalidated, const SWidget *WidgetInvalidateInvestigator, EInvalidateWidgetReason InvalidateReason)
const SWidget * WidgetInvalidated
Definition SlateDebugging.h:253
Definition SlateDebugging.h:210
SLATECORE_API FText ToText() const
uint32 UserIndex
Definition SlateDebugging.h:220
SLATECORE_API FSlateDebuggingMouseCaptureEventArgs(bool InCaptured, uint32 InUserIndex, uint32 InPointerIndex, const TSharedPtr< const SWidget > &InCapturingWidget)
uint32 PointerIndex
Definition SlateDebugging.h:221
const TSharedPtr< const SWidget > & CaptureWidget
Definition SlateDebugging.h:222
bool Captured
Definition SlateDebugging.h:219
Definition SlateDebugging.h:171
SLATECORE_API FSlateDebuggingNavigationEventArgs(const FNavigationEvent &InNavigationEvent, const FNavigationReply &InNavigationReply, const FWidgetPath &InNavigationSource, const TSharedPtr< SWidget > &InDestinationWidget, const ESlateDebuggingNavigationMethod InNavigationMethod)
const FNavigationEvent & NavigationEvent
Definition SlateDebugging.h:181
const FNavigationReply & NavigationReply
Definition SlateDebugging.h:182
const ESlateDebuggingNavigationMethod NavigationMethod
Definition SlateDebugging.h:185
const TSharedPtr< SWidget > & DestinationWidget
Definition SlateDebugging.h:184
const FWidgetPath & NavigationSource
Definition SlateDebugging.h:183
SLATECORE_API FText ToText() const
Definition SlateDebugging.h:196
const TSharedPtr< SWidget > & OptionalContextWidget
Definition SlateDebugging.h:204
SLATECORE_API FText ToText() const
const FText & Warning
Definition SlateDebugging.h:203
SLATECORE_API FSlateDebuggingWarningEventArgs(const FText &InWarning, const TSharedPtr< SWidget > &InOptionalContextWidget)