Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Slate
Inheritance Hierarchy
- FViewportFrame
- FViewport
- ISlateViewport
- FSceneViewport
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Slate/SceneViewport.h |
| Include | #include "Slate/SceneViewport.h" |
Syntax
class FSceneViewport :
public FViewportFrame ,
public FViewport ,
public ISlateViewport
Remarks
A viewport for use with Slate SViewport widgets.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSceneViewport
(
FViewportClient* InViewportClient, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< SWindow > | FindWindow () |
||
| const FGeometry & | Get the cached viewport geometry. | ||
| bool | |||
| EPixelFormat | Returns format for the scene of this viewport. | ||
| FIntPoint | GetSize () |
||
| FVector2D | |||
| ESlateViewportDynamicRange | |||
| FSlateShaderResource * | ISlateViewport interface | ||
| TWeakPtr< SViewport > | |||
| TWeakPtr< SWidget > | GetWidget () |
||
| bool | HandleNavigation
(
const uint32 InUserIndex, |
||
| bool | HasFixedSize () |
Does the viewport has a fixed size | |
| FReply | OnAnalogValueChanged
(
const FGeometry& MyGeometry, |
||
| FCursorReply | OnCursorQuery
(
const FGeometry& MyGeometry, |
||
| void | OnDrawViewport
(
const FGeometry& AllottedGeometry, |
||
| void | |||
| void | OnFocusLost
(
const FFocusEvent& InFocusEvent |
||
| FReply | OnFocusReceived
(
const FFocusEvent& InFocusEvent |
||
| FReply | OnKeyChar
(
const FGeometry& InGeometry, |
||
| FReply | OnKeyDown
(
const FGeometry& InGeometry, |
||
| FReply | OnKeyUp
(
const FGeometry& InGeometry, |
||
| TOptional< TSharedRef< SWidget > > | OnMapCursor
(
const FCursorReply& CursorReply |
||
| FReply | OnMotionDetected
(
const FGeometry& MyGeometry, |
||
| FReply | OnMouseButtonDoubleClick
(
const FGeometry& InGeometry, |
||
| FReply | OnMouseButtonDown
(
const FGeometry& InGeometry, |
||
| FReply | OnMouseButtonUp
(
const FGeometry& InGeometry, |
||
| void | OnMouseEnter
(
const FGeometry& MyGeometry, |
||
| void | OnMouseLeave
(
const FPointerEvent& MouseEvent |
||
| FReply | OnMouseMove
(
const FGeometry& InGeometry, |
||
| FReply | OnMouseWheel
(
const FGeometry& InGeometry, |
||
| void | OnPlayWorldViewportSwapped
(
const FSceneViewport& OtherViewport |
Performs a resize when in swapping viewports while viewing the play world. | |
| FPopupMethodReply | |||
| TOptional< bool > | OnQueryShowFocus
(
const EFocusCause InFocusCause |
||
| FReply | |||
| FReply | OnTouchEnded
(
const FGeometry& MyGeometry, |
||
| FReply | OnTouchFirstMove
(
const FGeometry& MyGeometry, |
||
| FReply | OnTouchForceChanged
(
const FGeometry& MyGeometry, |
||
| FReply | OnTouchGesture
(
const FGeometry& MyGeometry, |
||
| FReply | OnTouchMoved
(
const FGeometry& MyGeometry, |
||
| FReply | OnTouchStarted
(
const FGeometry& MyGeometry, |
||
| FReply | OnViewportActivated
(
const FWindowActivateEvent& InActivateEvent |
||
| void | |||
| void | OnViewportDeactivated
(
const FWindowActivateEvent& InActivateEvent |
||
| void | PaintDebugCanvas
(
const FGeometry& AllottedGeometry, |
Adds a draw element for the debug canvas. | |
| bool | Returns true if the viewport should be vsynced. | ||
| void | SetDebugCanvas
(
TSharedPtr< class SDebugCanvas > InDebugCanvas |
Sets the debug canvas used to display FCanvas on top of this viewport | |
| void | SetFixedViewportSize
(
uint32 NewSizeX, |
||
| void | SetGammaOverride
(
const float InGammaOverride |
Set an optional display gamma to use for this viewport | |
| void | SetOnSceneViewportResizeDel
(
FOnSceneViewportResize InOnSceneViewportResize |
Sets the Viewport resize delegate. | |
| void | SetPlayInEditorGetsMouseControl
(
const bool bGetsMouseControl |
Sets whether a PIE viewport takes mouse control on startup. | |
| void | SetPlayInEditorIsSimulate
(
const bool bIsSimulate |
||
| void | |||
| void | SetViewportSize
(
uint32 NewSizeX, |
||
| void | SwapStatCommands
(
const FSceneViewport& OtherViewport |
Swaps the active stats with another viewports | |
| void | Tick
(
const FGeometry& AllottedGeometry, |
Ticks the viewport |
Overridden from FViewportFrame
| Type | Name | Description | |
|---|---|---|---|
| FViewport * | GetViewport () |
FViewportFrame interface | |
| void | ResizeFrame
(
uint32 NewSizeX, |
Called to resize the actual window where this viewport resides |
Overridden from FViewport
| Type | Name | Description | |
|---|---|---|---|
| void | BeginRenderFrame
(
FRHICommandListImmediate& RHICmdList |
Called when a frame starts to render | |
| void | CaptureMouse
(
bool bCapture |
||
| void | Invalidates the viewport's cached hit proxies at the end of the frame. | ||
| void | EndRenderFrame
(
FRHICommandListImmediate& RHICmdList, |
Called when a frame is done rendering | |
| void | EnqueueBeginRenderFrame
(
const bool bShouldPresent |
Called before BeginRenderFrame is enqueued | |
| void | EnqueueEndRenderFrame
(
const bool bLockToVsync, |
Ends a rendering frame. Called from the game thread. | |
| FCanvas * | |||
| void | GetMousePos
(
FIntPoint& MousePosition, |
Sets MousePosition to the current mouse position | |
| int32 | GetMouseX () |
||
| int32 | GetMouseY () |
||
| FIntPoint | Returns dimensions of RenderTarget texture. Can be called on a game thread. | ||
| FViewportFrame * | Retrieves the interface to the viewport's frame, if it has one. | ||
| void * | GetWindow () |
||
| bool | HasFocus () |
||
| bool | New MouseCapture/MouseLock API. | ||
| void | Called when the viewport should be invalidated and redrawn | ||
| bool | Returns true if the mouse cursor is currently visible | ||
| bool | |||
| bool | |||
| bool | Should return true, if stereo rendering is allowed in this viewport | ||
| bool | Returns the state of the provided key. | ||
| void | LockMouseToViewport
(
bool bLock |
||
| void | MoveWindow
(
int32 NewPosX, |
FViewport interface | |
| void | ProcessInput
(
float DeltaTime |
Additional input processing that happens every frame | |
| void | Not implemented | ||
| void | Sets PreCapture coordinates from the current position of the slate cursor. | ||
| void | SetRequiresVsync
(
bool bShouldVsync |
Indicate that the viewport should be block for vsync. | |
| void | SetSoftwareCursorPosition
(
FVector2D Position |
||
| bool | SetUserFocus
(
bool bFocus |
Captures or uncaptures the joystick | |
| void | ShowCursor
(
bool bVisible |
||
| void | ShowSoftwareCursor
(
bool bVisible |
||
| void | UpdateViewportRHI
(
bool bDestroyed, |
Updates the viewport RHI with a new size and fullscreen flag | |
| FIntPoint | ViewportToVirtualDesktopPixel
(
FVector2D ViewportCoordinate |
Transforms a coordinate in the local space of this viewport into a virtual desktop pixel. | |
| FVector2D | VirtualDesktopPixelToViewport
(
FIntPoint VirtualDesktopPointPx |
Transforms a virtual desktop pixel (the origin is in the primary screen's top left corner) to the local space of this viewport |
Overridden from FRenderTarget
| Type | Name | Description | |
|---|---|---|---|
| EDisplayColorGamut | |||
| float | |||
| EDisplayOutputFormat | |||
| const FTextureRHIRef & | Gets the proper RenderTarget based on the current thread | ||
| bool |