| TSharedFromThis | ||
| FEditorViewportLayout | ||
| FTickableEditorObject
|
Module |
|
Header |
/Engine/Source/Editor/LevelEditor/Public/LevelViewportLayout.h |
Include |
#include "LevelViewportLayout.h" |
class FLevelViewportLayout :
public TSharedFromThis< FLevelViewportLayout >,
public FEditorViewportLayout,
public FTickableEditorObject
Base class for level viewport layout configurations Handles maximizing and restoring well as visibility of specific viewports.
Name | Description | ||
---|---|---|---|
|
bIsImmersive |
True if we're currently in immersive mode |
|
|
bIsMaximized |
True if we're currently maximized |
|
|
bIsMaximizeSupported |
True if the layout supports maximizing one viewport, false if the feature is disabled |
|
|
bIsQueryingLayoutMetrics |
Temporarily set to true while we are querying layout metrics and want all widgets to be visible |
|
|
bIsReplacement |
True if the user selected this layout, false if it's the initial layout loaded |
|
|
bIsTransitioning |
True if we've started an animation and are waiting for it to finish |
|
|
bWasImmersive |
True when transitioning from an immersive state |
|
|
bWasMaximized |
True when transitioning from a maximized state |
|
|
CachedOwnerWindow |
Caches the window that our widgets are contained within |
|
|
DeferredMaximizeCommands |
||
|
MaximizeAnimation |
Curve for animating from a "restored" state to a maximized state |
|
|
MaximizedViewport |
The current maximized viewport if any |
|
|
MaximizedViewportStartPosition |
Window-space start position of the viewport that's currently being maximized |
|
|
MaximizedViewportStartSize |
Window-space start size of the viewport that's currently being maximized |
|
|
ParentLevelEditor |
The optional parent level editor for this layout |
|
|
ParentTab |
The parent tab where this layout resides |
|
|
TWeakPtr< class... |
ParentTabContent |
The parent tab content object where this layout resides |
|
TSharedPtr< SWi... |
ViewportReplacementWidget |
Dummy widget that we'll inline-replace viewport widgets with while a view is maximized (or made immersive) |
|
ViewportResizeThrottleRequest |
Viewport resize draw throttle request |
|
|
TWeakPtr< class... |
ViewportsOverlayPtr |
The overlay widget that handles what viewports should be on top (non-maximized or maximized) |
|
TSharedPtr< SWi... |
ViewportsOverlayWidget |
When maximizing viewports (or making them immersive), this stores the widget we create to wrap the viewport |
Name | Description | |
---|---|---|
|
FLevelViewportLayout() |
Constructor |
Name | Description | |
---|---|---|
|
~FLevelViewportLayout() |
Destructor |
Name | Description | ||
---|---|---|---|
|
BeginThrottleForAnimatedResize() |
Begins a draw throttle for responsiveness when animating a viewports size |
|
|
TSharedRef< ... |
BuildViewportLayout ( |
Builds a viewport layout and returns the widget containing the layout |
|
EndThrottleForAnimatedResize() |
Ends a draw throttle for responsiveness when animating a viewports size |
|
|
FinishMaximizeTransition() |
If a viewport animation is in progress, finishes that transition immediately |
|
|
GetMaximizedViewportPositionOnCanvas() |
Returns the widget position for viewport transition animations |
|
|
GetMaximizedViewportSizeOnCanvas() |
Returns the widget size for viewport transition animations |
|
|
TWeakPtr< cl... |
GetParentTabContent() |
Returns the parent tab content object |
|
GetTypeSpecificLayoutString ( |
Generates a layout string for persisting settings for this layout based on the runtime type of layout |
|
|
InitCommonLayoutFromString |
Called in MakeViewportLayout() functions for derived types of layout to init values common to all types |
|
|
IsLevelViewportVisible ( |
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 |
|
|
IsMaximizeSupported() |
Checks to see if the specified level viewport supports maximizing one pane |
|
|
IsTransitioning() |
Returns whether a viewport animation is currently taking place |
|
|
IsViewportImmersive ( |
Checks to see if the specified level viewport is in immersive mode |
|
|
IsViewportMaximized ( |
Checks to see if the specified level viewport is maximized |
|
|
IsVisible() |
||
|
TSharedRef< ... |
MakeViewportLayout ( |
Overridden in derived classes to set up custom layouts |
|
MaximizeViewport |
Maximizes a specific viewport and hides the others in this layout |
|
|
OnGetNonMaximizedVisibility() |
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 |
|
|
ReplaceWidget ( |
Inline replaces a viewport content widget within this layout |
|
|
RequestMaximizeViewport |
Makes a request to maximize a specific viewport and hide the others in this layout |
|
|
SaveCommonLayoutString ( |
Called in SaveLayoutString() functions for derived types of layout to save values common to all types |
|
|
SetIsReplacement ( |
Tells this layout whether it was the intial layout or replaced an existing one when the user switched layouts |
|
|
TakeHighResScreenShot() |
Method for taking high res screen shots of viewports |
Name | Description | ||
---|---|---|---|
|
GetStatId() |
Return the stat id to use for this tickable |
|
|
IsTickable() |
Virtual that can be overloaded by the inheriting class. |
|
|
Tick ( |
FTickableEditorObject interface |
Name |
Description |
|
---|---|---|
|
FMaximizeViewportCommand |
Maximize/immersive commands can be queued up at startup to be executed on the first tick. |