Navigation
Unreal Engine C++ API Reference > Editor > LevelEditor
Inheritance Hierarchy
- FAssetEditorViewportLayout
- FLevelViewportLayout
References
Module | LevelEditor |
Header | /Engine/Source/Editor/LevelEditor/Public/LevelViewportLayout.h |
Include | #include "LevelViewportLayout.h" |
Syntax
class FLevelViewportLayout : public FAssetEditorViewportLayout
Remarks
Base class for level viewport layout configurations Handles maximizing and restoring well as visibility of specific viewports.
Variables
Type | Name | Description | |
---|---|---|---|
bool | bIsImmersive | True if we're currently in immersive mode | |
bool | bIsMaximized | True if we're currently maximized | |
bool | bIsMaximizeSupported | True if the layout supports maximizing one viewport, false if the feature is disabled | |
bool | bIsQueryingLayoutMetrics | Temporarily set to true while we are querying layout metrics and want all widgets to be visible | |
bool | bIsReplacement | True if the user selected this layout, false if it's the initial layout loaded | |
bool | bIsTransitioning | True if we've started an animation and are waiting for it to finish | |
bool | bWasImmersive | True when transitioning from an immersive state | |
bool | bWasMaximized | True when transitioning from a maximized state | |
TWeakPtr< SWindow > | CachedOwnerWindow | Caches the window that our widgets are contained within | |
TArray< FMaximizeViewportCommand > | DeferredMaximizeCommands | ||
FCurveSequence | MaximizeAnimation | Curve for animating from a "restored" state to a maximized state | |
FName | MaximizedViewport | The current maximized viewport if any | |
FVector2D | MaximizedViewportStartPosition | Window-space start position of the viewport that's currently being maximized | |
FVector2D | MaximizedViewportStartSize | Window-space start size of the viewport that's currently being maximized | |
TWeakPtr< ILevelEditor > | ParentLevelEditor | The optional parent level editor for this layout | |
TSharedPtr< SWidget > | ViewportReplacementWidget | Dummy widget that we'll inline-replace viewport widgets with while a view is maximized (or made immersive) | |
FThrottleRequest | ViewportResizeThrottleRequest | Viewport resize draw throttle request | |
TSharedPtr< SWidget > | ViewportsOverlayWidget | When maximizing viewports (or making them immersive), this stores the widget we create to wrap the viewport |
Constructors
Type | Name | Description | |
---|---|---|---|
Constructor |
Destructors
Type | Name | Description | |
---|---|---|---|
Destructor |
Functions
Type | Name | Description | |
---|---|---|---|
void | Begins a draw throttle for responsiveness when animating a viewports size | ||
TSharedRef< SWidget > | BuildViewportLayout
(
TSharedPtr< SDockTab > InParentDockTab, |
Builds a viewport layout and returns the widget containing the layout | |
void | Ends a draw throttle for responsiveness when animating a viewports size | ||
TSharedRef< SWidget > | FactoryViewport
(
FName InTypeName, |
||
void | If a viewport animation is in progress, finishes that transition immediately | ||
FVector2D | Returns the widget position for viewport transition animations | ||
FVector2D | Returns the widget size for viewport transition animations | ||
TStatId | GetStatId () |
||
void | InitCommonLayoutFromString
(
const FString& LayoutString, |
Called in after factory of a new layout functions for derived types of layout to init values common to all types | |
bool | IsLevelViewportVisible
(
FName InViewport |
Checks to see the specified level viewport is visible in this layout A viewport is visible in a layout if the layout is visible and the viewport is the maximized viewport or there is no maximized viewport | |
bool | Checks to see if the specified level viewport supports maximizing one pane | ||
bool | IsTickable () |
||
bool | Returns whether a viewport animation is currently taking place | ||
bool | IsViewportImmersive
(
FName InViewport |
Checks to see if the specified level viewport is in immersive mode | |
bool | IsViewportMaximized
(
FName InViewport |
Checks to see if the specified level viewport is maximized | |
bool | IsVisible () |
||
void | LoadConfig
(
const FString& LayoutString |
||
void | MaximizeViewport
(
FName ViewportToMaximize, |
Maximizes a specific viewport and hides the others in this layout | |
EVisibility | Delegate called to get the visibility of the non-maximized viewports The non-maximized viewports are not visible if there is a maximized viewport on top of them | ||
void | RequestMaximizeViewport
(
FName ViewportToMaximize, |
Makes a request to maximize a specific viewport and hide the others in this layout | |
void | SaveCommonLayoutString
(
const FString& SpecificLayoutString |
Called in SaveConfig() functions for derived types of layout to save values common to all types | |
void | SaveConfig
(
const FString& LayoutString |
||
void | SetIsReplacement
(
bool bInIsReplacement |
Tells this layout whether it was the intial layout or replaced an existing one when the user switched layouts | |
void | Method for taking high res screen shots of viewports | ||
void | Tick
(
float DeltaTime |
FTickableEditorObject interface |
Classes
Type | Name | Description | |
---|---|---|---|
FMaximizeViewportCommand | Maximize/immersive commands can be queued up at startup to be executed on the first tick. |