Files
UnrealEngineUWP/Engine/Source/Editor/HardwareTargeting/Public/HardwareTargetingModule.h
ryan durand 627baf970a Updating copyright for Engine Editor.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870586 by ryan durand in Main branch]
2019-12-26 15:33:43 -05:00

50 lines
1.7 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Misc/Attribute.h"
#include "UObject/WeakObjectPtr.h"
#include "Modules/ModuleInterface.h"
#include "HardwareTargetingSettings.h"
#include "Types/SlateEnums.h"
class SWidget;
DECLARE_DELEGATE_OneParam(FOnHardwareClassChanged, EHardwareClass::Type)
DECLARE_DELEGATE_OneParam(FOnGraphicsPresetChanged, EGraphicsPreset::Type)
/** Struct specifying pending changes to a settings object */
struct FModifiedDefaultConfig
{
/** The settings object to which the description relates */
TWeakObjectPtr<UObject> SettingsObject;
/** Heading describing the name of the category */
FText CategoryHeading;
/** Text describing the pending changes to the settings */
FText Description;
};
class IHardwareTargetingModule : public IModuleInterface
{
public:
/** Singleton access to this module */
HARDWARETARGETING_API static IHardwareTargetingModule& Get();
/** Apply the current hardware targeting settings if they have changed */
virtual void ApplyHardwareTargetingSettings() = 0;
/** Gets a list of objects that are required to be writable in order to apply the settings */
virtual TArray<FModifiedDefaultConfig> GetPendingSettingsChanges() = 0;
/** Make a new combo box for choosing a hardware class target */
virtual TSharedRef<SWidget> MakeHardwareClassTargetCombo(FOnHardwareClassChanged OnChanged, TAttribute<EHardwareClass::Type> SelectedEnum, EOrientation Orientation) = 0;
/** Make a new combo box for choosing a graphics preference */
virtual TSharedRef<SWidget> MakeGraphicsPresetTargetCombo(FOnGraphicsPresetChanged OnChanged, TAttribute<EGraphicsPreset::Type> SelectedEnum, EOrientation Orientation) = 0;
};