// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "Framework/Text/TextLayout.h" #include "IPropertyTypeCustomization.h" #include "Templates/SharedPointer.h" class IPropertyHandle; class FTextJustifyCustomization : public IPropertyTypeCustomization { public: /** Makes a new instance of this detail layout class for a specific detail view requesting it */ static TSharedRef MakeInstance() { return MakeShareable(new FTextJustifyCustomization()); } FTextJustifyCustomization() { } virtual void CustomizeHeader(TSharedRef PropertyHandle, class FDetailWidgetRow& HeaderRow, IPropertyTypeCustomizationUtils& CustomizationUtils) override; virtual void CustomizeChildren(TSharedRef PropertyHandle, class IDetailChildrenBuilder& ChildBuilder, IPropertyTypeCustomizationUtils& CustomizationUtils) override; void OnJustificationChanged(ETextJustify::Type NewState, TSharedRef PropertyHandle); ETextJustify::Type GetCurrentJustification(TSharedRef PropertyHandle) const; };