You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
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]
27 lines
653 B
C++
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;
|
|
};
|