You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UE-106515, UE-112897 #rb vincent.gauthier #preflight 606f3fcd97c8220001315871 #preflight 60749a870adbfb0001f0455c [CL 15982898 by Patrick Boutot in ue5-main branch]
50 lines
1.1 KiB
C++
50 lines
1.1 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Framework/Docking/SDockingNode.h"
|
|
#include "Framework/Docking/SDockingArea.h"
|
|
|
|
|
|
TSharedPtr<SDockingArea> SDockingNode::GetDockArea()
|
|
{
|
|
return ParentNodePtr.IsValid() ? ParentNodePtr.Pin()->GetDockArea() : TSharedPtr<SDockingArea>();
|
|
}
|
|
|
|
TSharedPtr<const SDockingArea> SDockingNode::GetDockArea() const
|
|
{
|
|
return ParentNodePtr.IsValid() ? ParentNodePtr.Pin()->GetDockArea() : TSharedPtr<SDockingArea>();
|
|
}
|
|
|
|
FReply SDockingNode::OnUserAttemptingDock( SDockingNode::RelativeDirection Direction, const FDragDropEvent& DragDropEvent )
|
|
{
|
|
return FReply::Unhandled();
|
|
}
|
|
|
|
float SDockingNode::GetSizeCoefficient() const
|
|
{
|
|
return SizeCoefficient;
|
|
}
|
|
|
|
void SDockingNode::SetSizeCoefficient( float InSizeCoefficient )
|
|
{
|
|
SizeCoefficient = InSizeCoefficient;
|
|
}
|
|
|
|
void SDockingNode::OnLiveTabAdded()
|
|
{
|
|
SetVisibility(EVisibility::Visible);
|
|
|
|
TSharedPtr<SDockingNode> ParentNode = ParentNodePtr.Pin();
|
|
if (ParentNode.IsValid())
|
|
{
|
|
ParentNode->OnLiveTabAdded();
|
|
}
|
|
}
|
|
|
|
SDockingNode::SDockingNode()
|
|
: SizeCoefficient(1.0f)
|
|
{
|
|
|
|
|
|
}
|
|
|