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

34 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Templates/SharedPointer.h"
class FPropertyPath;
class SWidget;
/**
* A customization applied to the whole details panel which can update any Name widget
*/
class FDetailsNameWidgetOverrideCustomization : public TSharedFromThis<FDetailsNameWidgetOverrideCustomization>
{
public:
/**
* default constructor
*/
PROPERTYEDITOR_API explicit FDetailsNameWidgetOverrideCustomization();
/**
* destructor
*/
PROPERTYEDITOR_API virtual ~FDetailsNameWidgetOverrideCustomization() = default;
/**
* @param InnerNameContent the unaltered content of the Name widget. It shows what would
* be there normally with no modification by this customization
* @param Path the FPropertyPath for the current property
* @return the new TSharedRef<SWidget> for the Name widget if one is provided, else it returns
* the default Name widget for the current property path
*/
PROPERTYEDITOR_API virtual TSharedRef<SWidget> CustomizeName( TSharedRef<SWidget> InnerNameContent, FPropertyPath& Path);
};