Files
UnrealEngine/Engine/Source/Runtime/Slate/Private/Widgets/Layout/SSeparator.cpp
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

27 lines
665 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "Widgets/Layout/SSeparator.h"
/////////////////////////////////////////////////////
// SSeparator
// Construct this widget
void SSeparator::Construct( const FArguments& InArgs )
{
SBorder::Construct(
SBorder::FArguments()
.BorderImage(InArgs._SeparatorImage)
.Padding(0.0f)
.BorderBackgroundColor(InArgs._ColorAndOpacity)
);
Orientation = InArgs._Orientation;
Thickness = InArgs._Thickness;
}
FVector2D SSeparator::ComputeDesiredSize( float ) const
{
const float Length = 16.0f;
return (Orientation == Orient_Horizontal) ? FVector2D(Length, Thickness) : FVector2D(Thickness, Length);
}