EM_Task/TraceInsights/Private/Insights/InsightsStyle.h
Boshuang Zhao 5144a49c9b add
2026-02-13 16:18:33 +08:00

33 lines
802 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Styling/SlateStyle.h"
/** Style data for Insights tools */
class FInsightsStyle
{
public:
static void Initialize();
static void Shutdown();
static const ISlateStyle& Get();
static FName GetStyleSetName();
static const FLinearColor& GetColor(FName PropertyName, const ANSICHAR* Specifier = NULL)
{
return StyleInstance->GetColor(PropertyName, Specifier);
}
static const FSlateBrush* GetBrush(FName PropertyName, const ANSICHAR* Specifier = NULL)
{
return StyleInstance->GetBrush(PropertyName, Specifier);
}
private:
static TSharedRef<class FSlateStyleSet> Create();
private:
static TSharedPtr<class FSlateStyleSet> StyleInstance;
};