You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
-Header and body container - Simple Title container - Column wrapping container - Zero State builder - Addition of favorites - moved additions of placement entries into the category builder #jira UE-205201 #rb JeanMichel.Dignard [CL 32977191 by karen jirak in ue5-main branch]
51 lines
1.2 KiB
C++
51 lines
1.2 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Layout/Containers/SlateBuilder.h"
|
|
|
|
FSlateBuilderArgs::FSlateBuilderArgs(const FName& InName, const TSharedPtr<SWidget> InContent) :
|
|
BuilderKey( UE::DisplayBuilders::FBuilderKeys::Get().None() )
|
|
, Content( InContent )
|
|
{
|
|
}
|
|
|
|
FSlateBuilderArgs::FSlateBuilderArgs( const UE::DisplayBuilders::FBuilderKey& InBuilderKey, const TSharedPtr<SWidget> InContent) :
|
|
BuilderKey( InBuilderKey )
|
|
, Content( InContent )
|
|
{
|
|
}
|
|
|
|
FSlateBuilder::FSlateBuilder( TSharedPtr<SWidget> Content, FName InIdentifier ) :
|
|
FToolElementRegistrationArgs( InIdentifier )
|
|
, SlateContent( Content )
|
|
{
|
|
}
|
|
|
|
FSlateBuilder::FSlateBuilder( UE::DisplayBuilders::FBuilderKey InBuilderKey ) :
|
|
FToolElementRegistrationArgs( InBuilderKey )
|
|
{
|
|
}
|
|
|
|
FSlateBuilder::FSlateBuilder( FName InIdentifier ) :
|
|
FToolElementRegistrationArgs( InIdentifier )
|
|
{
|
|
}
|
|
|
|
TSharedPtr<SWidget> FSlateBuilder::GenerateWidget()
|
|
{
|
|
if ( SlateBuilder.IsValid() )
|
|
{
|
|
SlateContent = SlateBuilder->GenerateWidget();
|
|
}
|
|
return SlateContent;
|
|
}
|
|
|
|
bool FSlateBuilder::IsEmpty()
|
|
{
|
|
return !SlateContent.IsValid() || SlateContent == SNullWidget::NullWidget;
|
|
}
|
|
|
|
void FSlateBuilder::Empty()
|
|
{
|
|
SlateContent = SNullWidget::NullWidget;
|
|
}
|