UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ConsoleSlateDebuggerPaint.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"
13#include "Delegates/Delegate.h"
14#include "HAL/IConsoleManager.h"
16
24{
25public:
27 virtual ~FConsoleSlateDebuggerPaint() override ;
28
29 virtual void LoadConfig() override;
30 virtual void SaveConfig() override;
31
32protected:
33 virtual FString GetConfigSection() const override { return TEXT("SlateDebugger.Paint"); }
35 {
36 return FString::Printf(TEXT("%d widgets painted"), NumberOfWidgetsUpdatedThisFrame);
37 }
38 virtual FAutoConsoleVariableRef& GetEnabledCVar() override { return EnabledRefCVar; }
39 virtual void StartDebugging_Internal() override;
40 virtual void StopDebugging_Internal() override;
41
42 virtual void AddUpdatedWidget(const SWidget& Widget, const FConsoleSlateDebuggerUtility::TSWindowId WindowId, bool bIncrementUpdateCount = true) override;
43
44private:
45 void HandleEndWidgetPaint(const SWidget* Widget, const FSlateWindowElementList& OutDrawElements, int32 LayerId);
46
47private:
49
50 //~ Console objects
62};
63
64#endif //WITH_SLATE_DEBUGGING
#define TEXT(x)
Definition Platform.h:1272
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
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition IConsoleManager.h:2026
Definition IConsoleManager.h:1580
Definition DrawElements.h:220
Definition SWidget.h:165