You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
33 lines
976 B
C++
33 lines
976 B
C++
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreTypes.h"
|
|
#include "IPropertyTypeCustomization.h"
|
|
|
|
struct FFrameRate;
|
|
|
|
class FFrameRateCustomization : public IPropertyTypeCustomization
|
|
{
|
|
public:
|
|
|
|
/** Makes a new instance of this detail layout class for a specific detail view requesting it. */
|
|
static TSharedRef<IPropertyTypeCustomization> MakeInstance();
|
|
|
|
public:
|
|
|
|
// IDetailCustomization interface
|
|
|
|
virtual void CustomizeHeader( TSharedRef<IPropertyHandle> PropertyHandle, FDetailWidgetRow& HeaderRow, IPropertyTypeCustomizationUtils& CustomizationUtils ) override;
|
|
virtual void CustomizeChildren( TSharedRef<IPropertyHandle> PropertyHandle, IDetailChildrenBuilder& ChildBuilder, IPropertyTypeCustomizationUtils& CustomizationUtils ) override;
|
|
|
|
private:
|
|
|
|
|
|
FFrameRate GetFirstFrameRate() const;
|
|
void SetFrameRate(FFrameRate NewFrameRate);
|
|
bool HasMultipleValues() const;
|
|
|
|
TSharedPtr<IPropertyHandle> StructPropertyHandle;
|
|
};
|