Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Rendering/RenderingCommon.h |
Include |
#include "Rendering/RenderingCommon.h" |
class ISlateViewport
Viewport implementation interface that is used by SViewport when it needs to draw and processes input.
Name | Description | |
---|---|---|
|
~ISlateViewport() |
Name | Description | ||
---|---|---|---|
|
AllowScaling() |
Whether the viewport contents should be scaled or not. Defaults to true. |
|
|
GetSize() |
Returns the size of the viewport |
|
|
GetSoftwareCursorPosition() |
Returns the current position of the software cursor |
|
|
FSlateShader... |
GetViewportRenderTargetTexture() |
Returns a slate texture used to draw the rendered viewport in Slate. |
|
GetWidget() |
Gets the SWidget associated with this viewport |
|
|
HandleNavigation ( |
Give the viewport an opportunity to override the navigation behavior. |
|
|
IsSoftwareCursorVisible() |
Returns whether the software cursor is currently visible |
|
|
IsViewportTextureAlphaOnly() |
Does the texture returned by GetViewportRenderTargetTexture only have an alpha channel? |
|
|
OnAnalogValueChanged ( |
Called when an analog value changes on a button that supports analog |
|
|
OnCursorQuery ( |
Called when Slate needs to know what the mouse cursor should be. |
|
|
OnDrawViewport ( |
Called by Slate when the viewport widget is drawn Implementers of this interface can use this method to perform custom per draw functionality. |
|
|
OnFinishedPointerInput() |
Called after all input for this frame is processed. |
|
|
OnFocusLost ( |
Called when the viewport loses keyboard focus. |
|
|
OnFocusReceived ( |
Called when the viewport gains keyboard focus. |
|
|
OnKeyChar ( |
Called by Slate when a character key is pressed while the viewport has focus |
|
|
OnKeyDown |
Called by Slate when a key is pressed inside the viewport |
|
|
OnKeyUp |
Called by Slate when a key is released inside the viewport |
|
|
OnMapCursor ( |
After OnCursorQuery has specified a cursor type the system asks each widget under the mouse to map that cursor to a widget. |
|
|
OnMotionDetected ( |
Called when motion is detected (controller or device) e.g. Someone tilts or shakes their controller. |
|
|
OnMouseButtonDoubleClick ( |
Called by Slate when the mouse wheel is used inside the viewport |
|
|
OnMouseButtonDown ( |
Called by Slate when a mouse button is pressed inside the viewport |
|
|
OnMouseButtonUp ( |
Called by Slate when a mouse button is released inside the viewport |
|
|
OnMouseEnter ( |
||
|
OnMouseLeave ( |
||
|
OnMouseMove ( |
Called by Slate when a mouse button is released inside the viewport |
|
|
OnMouseWheel ( |
Called by Slate when the mouse wheel is used inside the viewport |
|
|
FNavigationR... |
OnNavigation ( |
Called when navigation is requested e.g. Left Joystick, Direction Pad, Arrow Keys can generate navigation events. |
|
FPopupMethod... |
OnQueryPopupMethod() |
Called to figure out whether we can make new windows for popups within this viewport. |
|
OnQueryShowFocus ( |
Called to determine if we should render the focus brush. |
|
|
OnRequestWindowClose() |
Called when the top level window associated with the viewport has been requested to close. |
|
|
OnTouchEnded ( |
Called when a touchpad touch is ended (finger lifted) |
|
|
OnTouchFirstMove ( |
Called when a touchpad touch has first moved after initial press |
|
|
OnTouchForceChanged ( |
Called when a touchpad touch force changes, but may or may not have moved |
|
|
OnTouchGesture ( |
Called on a touchpad gesture event |
|
|
OnTouchMoved ( |
Called when a touchpad touch is moved (finger moved) |
|
|
OnTouchStarted ( |
Called when a touchpad touch is started (finger down) |
|
|
OnViewportActivated ( |
Called when the viewports top level window is being Activated |
|
|
OnViewportClosed() |
Called when the viewport has been requested to close. |
|
|
OnViewportDeactivated ( |
Called when the viewports top level window is being Deactivated |
|
|
RequiresVsync() |
Returns true if the viewport should be vsynced. |
|
|
Tick ( |
Performs any ticking necessary by this handle |