Files
UnrealEngine/Engine/Source/Editor/VREditor/Public/VREditorStyle.h
2025-05-18 13:04:45 +08:00

46 lines
898 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "HAL/PlatformMath.h"
#include "Styling/SlateStyle.h"
#include "Templates/SharedPointer.h"
#include "UObject/NameTypes.h"
class ISlateStyle;
struct FSlateBrush;
/** */
class FVREditorStyle
{
public:
static void Shutdown();
/** reloads textures used by slate renderer */
static void ReloadTextures();
/** @return The Slate style set for the UMG Style */
static const ISlateStyle& Get();
static FName GetStyleSetName();
static FName GetSecondaryStyleSetName();
static FName GetNumpadStyleSetName();
static const FSlateBrush* GetBrush(FName PropertyName, const ANSICHAR* Specifier = NULL)
{
return VREditorStyleInstance->GetBrush(PropertyName, Specifier);
}
private:
static TSharedRef< class FSlateStyleSet > Create();
private:
static TSharedPtr< class FSlateStyleSet > VREditorStyleInstance;
};