// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "DetailWidgetRow.h" #include "IPropertyTypeCustomization.h" #include "Widgets/SCompoundWidget.h" class FAssetThumbnailPool; class FDetailCategoryImpl; /** * Generates the header widget for a customized struct or other type. * This widget is generally used in the property editor to display a struct as a single row, like with an FColor. * Properties passed in that do not have a header customization will return a null widget. */ class PROPERTYEDITOR_API SStandaloneCustomizedValueWidget : public SCompoundWidget, public IPropertyTypeCustomizationUtils { public: SLATE_BEGIN_ARGS( SStandaloneCustomizedValueWidget ) {} /** Optional Parent Detail Category, useful to access Thumbnail Pool. */ SLATE_ARGUMENT( TSharedPtr, ParentCategory) SLATE_END_ARGS() void Construct(const FArguments& InArgs, TSharedPtr InCustomizationInterface, TSharedRef InPropertyHandle); virtual TSharedPtr GetThumbnailPool() const override; private: TWeakPtr ParentCategory; TSharedPtr CustomizationInterface; TSharedPtr PropertyHandle; TSharedPtr CustomPropertyWidget; };