Files
UnrealEngineUWP/Engine/Source/Editor/PropertyEditor/Private/SConstrainedBox.h
sebastian nordgren a5aa9eaf47 Inner categories (produced by eg. instanced UObjects) now correctly indent.
Moved SDetailRowIndent and SConstrainedBox to their own files. Created SDetailExpanderArrow widget so that it can be reused in categories and groups.

#b lauren.barnes

[CL 14827369 by sebastian nordgren in ue5-main branch]
2020-12-01 07:52:47 -04:00

27 lines
653 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Widgets/SCompoundWidget.h"
class SConstrainedBox : public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS(SConstrainedBox)
: _MinWidth()
, _MaxWidth()
{}
SLATE_DEFAULT_SLOT(FArguments, Content)
SLATE_ATTRIBUTE(TOptional<float>, MinWidth)
SLATE_ATTRIBUTE(TOptional<float>, MaxWidth)
SLATE_END_ARGS()
void Construct(const FArguments& InArgs);
virtual FVector2D ComputeDesiredSize(float LayoutScaleMultiplier) const override;
private:
TAttribute< TOptional<float> > MinWidth;
TAttribute< TOptional<float> > MaxWidth;
};