Files
UnrealEngine/Engine/Source/Developer/Profiler/Private/Widgets/SProfilerFPSChartPanel.h
2025-05-18 13:04:45 +08:00

56 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#if STATS
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Widgets/SCompoundWidget.h"
#include "ProfilerManager.h"
class FFPSAnalyzer;
class SHistogram;
class SProfilerFPSStatisticsPanel;
/**
* A custom widget that acts as a container for widgets like SDataGraph or SEventTree.
*/
class SProfilerFPSChartPanel
: public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS( SProfilerFPSChartPanel )
{}
SLATE_ARGUMENT( TSharedPtr<FFPSAnalyzer>, FPSAnalyzer )
SLATE_END_ARGS()
/** Virtual destructor. */
virtual ~SProfilerFPSChartPanel();
/**
* Construct this widget
*
* @param InArgs The declaration data for this widget
*/
void Construct( const FArguments& InArgs );
protected:
/** Called when the status of specified tracked stat has changed. */
void ProfilerManager_OnViewModeChanged(EProfilerViewMode NewViewMode);
protected:
/** The descriptions panel of the chart */
TSharedPtr<SHistogram> Histogram;
/** The descriptions panel of the chart */
TSharedPtr<SProfilerFPSStatisticsPanel> StatisticsPanel;
};
#endif // STATS