// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "Widgets/SWidget.h" #include "LevelViewportLayout.h" #define UE_API LEVELEDITOR_API class FLevelEditorViewportClient; class SLevelViewport; class FLevelViewportLayoutEntity : public ILevelViewportLayoutEntity { public: UE_API FLevelViewportLayoutEntity(TSharedPtr InLevelViewport); UE_API virtual TSharedRef AsWidget() const override; UE_API virtual TSharedPtr AsLevelViewport() const override; UE_API bool IsPlayInEditorViewportActive() const; UE_API void RegisterGameViewportIfPIE(); UE_API void SetKeyboardFocus(); UE_API void OnLayoutDestroyed(); UE_API void SaveConfig(const FString& ConfigSection); UE_API FLevelEditorViewportClient& GetLevelViewportClient() const; UE_API FName GetType() const; UE_API void TakeHighResScreenShot() const; protected: /** This entity's level viewport */ TSharedRef LevelViewport; }; #undef UE_API