EM_Task/UnrealEd/Public/EditorViewportLayoutOnePane.h
Boshuang Zhao 5144a49c9b add
2026-02-13 16:18:33 +08:00

27 lines
730 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Widgets/SWidget.h"
#include "EditorViewportLayout.h"
#include "AssetEditorViewportLayout.h"
class SHorizontalBox;
class FEditorViewportLayoutOnePane: public FAssetEditorViewportLayout
{
public:
virtual const FName& GetLayoutTypeName() const override { return EditorViewportConfigurationNames::OnePane; }
protected:
/**
* Creates the viewport for the single pane
*/
virtual TSharedRef<SWidget> MakeViewportLayout(TFunction<TSharedRef<SEditorViewport>(void)>& Func, const FString& LayoutString) override;
protected:
/** The viewport widget parent box */
TSharedPtr<SHorizontalBox> ViewportBox;
};