You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
32 lines
798 B
C++
32 lines
798 B
C++
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "UMGPrivatePCH.h"
|
|
#include "Slate/SlateBrushAsset.h"
|
|
#include "WidgetLayoutLibrary.h"
|
|
|
|
#define LOCTEXT_NAMESPACE "UMG"
|
|
|
|
/////////////////////////////////////////////////////
|
|
// UWidgetLayoutLibrary
|
|
|
|
UWidgetLayoutLibrary::UWidgetLayoutLibrary(const FPostConstructInitializeProperties& PCIP)
|
|
: Super(PCIP)
|
|
{
|
|
}
|
|
|
|
UCanvasPanelSlot* UWidgetLayoutLibrary::SlotAsCanvasSlot(UWidget* ChildWidget)
|
|
{
|
|
return Cast<UCanvasPanelSlot>(ChildWidget->Slot);
|
|
}
|
|
|
|
UGridSlot* UWidgetLayoutLibrary::SlotAsGridSlot(UWidget* ChildWidget)
|
|
{
|
|
return Cast<UGridSlot>(ChildWidget->Slot);
|
|
}
|
|
|
|
UUniformGridSlot* UWidgetLayoutLibrary::SlotAsUniformGridSlot(UWidget* ChildWidget)
|
|
{
|
|
return Cast<UUniformGridSlot>(ChildWidget->Slot);
|
|
}
|
|
|
|
#undef LOCTEXT_NAMESPACE |