// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "Widgets/SCompoundWidget.h" class SWidget; /** Helper class to force a widget to fill in a space. Copied from SConstrainedBox.h */ class SMutableConstrainedBox : public SCompoundWidget { public: SLATE_BEGIN_ARGS(SMutableConstrainedBox) : _MinWidth() , _MaxWidth() {} SLATE_DEFAULT_SLOT(FArguments, Content) SLATE_ATTRIBUTE(TOptional, MinWidth) SLATE_ATTRIBUTE(TOptional, MaxWidth) SLATE_END_ARGS() void Construct(const FArguments& InArgs); virtual FVector2D ComputeDesiredSize(float LayoutScaleMultiplier) const override; private: TAttribute< TOptional > MinWidth; TAttribute< TOptional > MaxWidth; };