Files
UnrealEngineUWP/Engine/Source/Editor/RewindDebuggerInterface/Public/IRewindDebuggerViewCreator.h
Keith Yerex 8180e38fa9 rewind debugger interfaces refactor
- moving interfaces to engine from plugins
- get rewind debugger debug view interface out of GameplayInsights plugin
- change view system to use modular features instead of having it's own registration management
#review jurre.debaare

[CL 16986089 by Keith Yerex in ue5-main branch]
2021-07-28 15:21:01 -04:00

34 lines
1.0 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "IRewindDebuggerView.h"
#include "Textures/SlateIcon.h"
namespace TraceServices
{
class IAnalysisSession;
}
// Interface class which creates debug widgets
class REWINDDEBUGGERINTERFACE_API IRewindDebuggerViewCreator : public IModularFeature
{
public:
static const FName ModularFeatureName;
// returns the name of a type of UObject for which this debug view will be created
virtual FName GetTargetTypeName() const = 0;
// returns a unique name for identifying this type of widget (same value returned by IRewindDebuggerView::GetName)
virtual FName GetName() const = 0;
// text for tab header
virtual FText GetTitle() const = 0;
// icon for tab header
virtual FSlateIcon GetIcon() const = 0;
// creates and returns a widget, which will be displayed in Rewind Debugger
virtual TSharedPtr<IRewindDebuggerView> CreateDebugView(uint64 ObjectId, double CurrentTime, const TraceServices::IAnalysisSession& InAnalysisSession) const = 0;
};