You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
73 lines
1.7 KiB
C++
73 lines
1.7 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Engine.h"
|
|
#include "SlateBasics.h"
|
|
#include "IStatsViewer.h"
|
|
#include "IStatsPage.h"
|
|
|
|
extern const FName StatsViewerApp;
|
|
|
|
/** The predefined stats pages built into this module */
|
|
namespace EStatsPage
|
|
{
|
|
enum Type
|
|
{
|
|
CookerStats,
|
|
LightingBuildInfo,
|
|
PrimitiveStats,
|
|
StaticMeshLightingInfo,
|
|
TextureStats,
|
|
};
|
|
}
|
|
|
|
class FStatsViewerModule : public IModuleInterface
|
|
{
|
|
public:
|
|
/** Begin IModuleInterface interface */
|
|
virtual void StartupModule();
|
|
virtual void ShutdownModule();
|
|
/** End IModuleInterface interface */
|
|
|
|
/**
|
|
* Creates a stats viewer widget
|
|
*
|
|
* @return New stats viewer widget
|
|
*/
|
|
virtual TSharedRef< IStatsViewer > CreateStatsViewer() const;
|
|
|
|
/**
|
|
* Creates a stats viewer custom column, supporting weak object references.
|
|
* @param InOptions Options used to configure the custom column.
|
|
* @return New column customization
|
|
*/
|
|
virtual TSharedRef< class IPropertyTableCustomColumn > CreateObjectCustomColumn(const struct FObjectHyperlinkColumnInitializationOptions& InOptions) const;
|
|
|
|
/**
|
|
* Register a page for this module to use
|
|
* @param InPage The page to register
|
|
*/
|
|
virtual void RegisterPage( TSharedRef< IStatsPage > InPage );
|
|
|
|
/**
|
|
* Unregister a page for this module to use
|
|
* @param InPage The page to unregister
|
|
*/
|
|
virtual void UnregisterPage( TSharedRef< IStatsPage > InPage );
|
|
|
|
/**
|
|
* Get a page of the stats module by enum type
|
|
*/
|
|
virtual TSharedPtr< IStatsPage > GetPage( EStatsPage::Type InType );
|
|
|
|
/**
|
|
* Get a page of the stats module by name
|
|
*/
|
|
virtual TSharedPtr< IStatsPage > GetPage( const FName& InPageName );
|
|
|
|
/**
|
|
* Clears all pages
|
|
*/
|
|
virtual void Clear();
|
|
}; |