![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <RenderingCommon.h>
Inheritance diagram for ISlateViewport:Viewport implementation interface that is used by SViewport when it needs to draw and processes input.
|
inlinevirtual |
Whether the viewport contents should be scaled or not. Defaults to true.
|
inlinevirtual |
Returns format for the scene of this viewport, only valid if this viewport actually has a scene, else PF_Unknown.
Reimplemented in FSceneViewport.
Returns the size of the viewport
Implemented in FSceneViewport, FMovieViewport, FBackgroundView, and FWebBrowserViewport.
Returns the current position of the software cursor
Reimplemented in FSceneViewport.
|
inlinevirtual |
Does the texture contain SDR/HDR information
Reimplemented in FSceneViewport.
|
pure virtual |
Returns a slate texture used to draw the rendered viewport in Slate.
Implemented in FSceneViewport, FMovieViewport, FBackgroundView, and FWebBrowserViewport.
Gets the SWidget associated with this viewport
Reimplemented in FSceneViewport.
|
inlinevirtual |
Give the viewport an opportunity to override the navigation behavior. This is called after all the navigation event bubbling is complete and we know a destination.
| InDestination | The destination widget |
Reimplemented in FSceneViewport.
Returns whether the software cursor is currently visible
Reimplemented in FSceneViewport.
Does the texture returned by GetViewportRenderTargetTexture represent a stereoscopic 3D target?
Does the texture returned by GetViewportRenderTargetTexture only have an alpha channel?
|
inlinevirtual |
Called when an analog value changes on a button that supports analog
| MyGeometry | The Geometry of the widget receiving the event |
| InAnalogInputEvent | Analog input event |
Reimplemented in FSceneViewport.
|
inlinevirtual |
Called when Slate needs to know what the mouse cursor should be.
Reimplemented in FSceneViewport, and FWebBrowserViewport.
|
inlinevirtual |
Called by Slate when the viewport widget is drawn Implementers of this interface can use this method to perform custom per draw functionality. This is only called if the widget is visible
| AllottedGeometry | The geometry of the viewport widget |
Reimplemented in FSceneViewport.
Called after all input for this frame is processed.
Reimplemented in FSceneViewport.
|
inlinevirtual |
Called when the viewport loses keyboard focus.
| InFocusEvent | Information about what caused the viewport to lose focus |
Reimplemented in FSceneViewport, and FWebBrowserViewport.
|
inlinevirtual |
Called when the viewport gains keyboard focus.
| InFocusEvent | Information about what caused the viewport to gain focus |
Reimplemented in FSceneViewport, and FWebBrowserViewport.
|
inlinevirtual |
Called by Slate when a character key is pressed while the viewport has focus
| MyGeometry | Information about the location and size of the viewport |
| MouseEvent | Information about the character that was pressed |
Reimplemented in FSceneViewport, and FWebBrowserViewport.
|
inlinevirtual |
Called by Slate when a key is pressed inside the viewport
| MyGeometry | Information about the location and size of the viewport |
| MouseEvent | Information about the key event |
Reimplemented in FSceneViewport, and FWebBrowserViewport.
|
inlinevirtual |
Called by Slate when a key is released inside the viewport
| MyGeometry | Information about the location and size of the viewport |
| MouseEvent | Information about the key event |
Reimplemented in FSceneViewport, and FWebBrowserViewport.
|
inlinevirtual |
After OnCursorQuery has specified a cursor type the system asks each widget under the mouse to map that cursor to a widget. This event is bubbled.
Reimplemented in FSceneViewport.
|
inlinevirtual |
Called when motion is detected (controller or device) e.g. Someone tilts or shakes their controller.
| InMotionEvent | The motion event generated |
Reimplemented in FSceneViewport.
|
inlinevirtual |
Called by Slate when the mouse wheel is used inside the viewport
| MyGeometry | Information about the location and size of the viewport |
| MouseEvent | Information about the mouse event |
Reimplemented in FSceneViewport, and FWebBrowserViewport.
|
inlinevirtual |
Called by Slate when a mouse button is pressed inside the viewport
| MyGeometry | Information about the location and size of the viewport |
| MouseEvent | Information about the mouse event |
Reimplemented in FSceneViewport, and FWebBrowserViewport.
|
inlinevirtual |
Called by Slate when a mouse button is released inside the viewport
| MyGeometry | Information about the location and size of the viewport |
| MouseEvent | Information about the mouse event |
Reimplemented in FSceneViewport, and FWebBrowserViewport.
|
inlinevirtual |
Reimplemented in FSceneViewport, and FWebBrowserViewport.
|
inlinevirtual |
Reimplemented in FSceneViewport, and FWebBrowserViewport.
|
inlinevirtual |
Called by Slate when a mouse button is released inside the viewport
| MyGeometry | Information about the location and size of the viewport |
| MouseEvent | Information about the mouse event |
Reimplemented in FSceneViewport, and FWebBrowserViewport.
|
inlinevirtual |
Called by Slate when the mouse wheel is used inside the viewport
| MyGeometry | Information about the location and size of the viewport |
| MouseEvent | Information about the mouse event |
Reimplemented in FSceneViewport, and FWebBrowserViewport.
|
inlinevirtual |
Called when navigation is requested e.g. Left Joystick, Direction Pad, Arrow Keys can generate navigation events.
| InNavigationEvent | The navigation event generated |
|
inlinevirtual |
Called to figure out whether we can make new windows for popups within this viewport. Making windows allows us to have popups that go outside the parent window, but cannot be used in fullscreen and do not have per-pixel alpha.
Reimplemented in FSceneViewport.
|
inlinevirtual |
Called to determine if we should render the focus brush.
| InFocusCause | The cause of focus |
Reimplemented in FSceneViewport.
Called when the top level window associated with the viewport has been requested to close. At this point, the viewport has not been closed and the operation may be canceled. This may not called from PIE, Editor Windows, on consoles, or before the game ends from other methods. This is only when the platform specific window is closed.
Reimplemented in FSceneViewport.
|
inlinevirtual |
Called when a touchpad touch is ended (finger lifted)
| ControllerEvent | The controller event generated |
Reimplemented in FSceneViewport.
|
inlinevirtual |
Called when a touchpad touch has first moved after initial press
| ControllerEvent | The controller event generated |
Reimplemented in FSceneViewport.
|
inlinevirtual |
Called when a touchpad touch force changes, but may or may not have moved
| ControllerEvent | The controller event generated |
Reimplemented in FSceneViewport.
|
inlinevirtual |
Called on a touchpad gesture event
| InGestureEvent | The touch event generated |
Reimplemented in FWebBrowserViewport, and FSceneViewport.
|
inlinevirtual |
Called when a touchpad touch is moved (finger moved)
| ControllerEvent | The controller event generated |
Reimplemented in FSceneViewport.
|
inlinevirtual |
Called when a touchpad touch is started (finger down)
| ControllerEvent | The controller event generated |
Reimplemented in FSceneViewport.
|
inlinevirtual |
Called when the viewports top level window is being Activated
Reimplemented in FSceneViewport.
Called when the viewport has been requested to close.
Reimplemented in FSceneViewport.
|
inlinevirtual |
Called when the viewports top level window is being Deactivated
Reimplemented in FSceneViewport.
Returns true if the viewport should be vsynced.
Implemented in FSceneViewport, FMovieViewport, FBackgroundView, and FWebBrowserViewport.
|
inlinevirtual |
Performs any ticking necessary by this handle
Reimplemented in FWebBrowserViewport, and FSceneViewport.
Is the viewport expected to render to GetViewportRenderTargetTexture? Or to the swapchain?