Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Rendering
Inheritance Hierarchy
- ISlateViewport
- FAssetThumbnail
- FMovieViewport
- FSceneViewport
- FTrackEditorThumbnail
- FWebBrowserViewport
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Rendering/RenderingCommon.h |
| Include | #include "Rendering/RenderingCommon.h" |
Syntax
class ISlateViewport
Remarks
Viewport implementation interface that is used by SViewport when it needs to draw and processes input.
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AllowScaling () |
Whether the viewport contents should be scaled or not. Defaults to true. | |
| FIntPoint | GetSize () |
Returns the size of the viewport | |
| FVector2D | Returns the current position of the software cursor | ||
| FSlateShaderResource * | Returns a slate texture used to draw the rendered viewport in Slate. | ||
| TWeakPtr< SWidget > | GetWidget () |
Gets the SWidget associated with this viewport | |
| bool | HandleNavigation
(
const uint32 InUserIndex, |
Give the viewport an opportunity to override the navigation behavior. | |
| bool | Returns whether the software cursor is currently visible | ||
| bool | Does the texture returned by GetViewportRenderTargetTexture only have an alpha channel? | ||
| FReply | OnAnalogValueChanged
(
const FGeometry& MyGeometry, |
Called when an analog value changes on a button that supports analog | |
| FCursorReply | OnCursorQuery
(
const FGeometry& MyGeometry, |
Called when Slate needs to know what the mouse cursor should be. | |
| void | OnDrawViewport
(
const FGeometry& AllottedGeometry, |
Called by Slate when the viewport widget is drawn Implementers of this interface can use this method to perform custom per draw functionality. | |
| void | Called after all input for this frame is processed. | ||
| void | OnFocusLost
(
const FFocusEvent& InFocusEvent |
Called when the viewport loses keyboard focus. | |
| FReply | OnFocusReceived
(
const FFocusEvent& InFocusEvent |
Called when the viewport gains keyboard focus. | |
| FReply | OnKeyChar
(
const FGeometry& MyGeometry, |
Called by Slate when a character key is pressed while the viewport has focus | |
| FReply | Called by Slate when a key is pressed inside the viewport | ||
| FReply | Called by Slate when a key is released inside the viewport | ||
| TOptional< TSharedRef< SWidget > > | OnMapCursor
(
const FCursorReply& CursorReply |
After OnCursorQuery has specified a cursor type the system asks each widget under the mouse to map that cursor to a widget. | |
| FReply | OnMotionDetected
(
const FGeometry& MyGeometry, |
Called when motion is detected (controller or device) e.g. Someone tilts or shakes their controller. | |
| FReply | OnMouseButtonDoubleClick
(
const FGeometry& InMyGeometry, |
Called by Slate when the mouse wheel is used inside the viewport | |
| FReply | OnMouseButtonDown
(
const FGeometry& MyGeometry, |
Called by Slate when a mouse button is pressed inside the viewport | |
| FReply | OnMouseButtonUp
(
const FGeometry& MyGeometry, |
Called by Slate when a mouse button is released inside the viewport | |
| void | OnMouseEnter
(
const FGeometry& MyGeometry, |
||
| void | OnMouseLeave
(
const FPointerEvent& MouseEvent |
||
| FReply | OnMouseMove
(
const FGeometry& MyGeometry, |
Called by Slate when a mouse button is released inside the viewport | |
| FReply | OnMouseWheel
(
const FGeometry& MyGeometry, |
Called by Slate when the mouse wheel is used inside the viewport | |
| FNavigationReply | OnNavigation
(
const FGeometry& MyGeometry, |
Called when navigation is requested e.g. Left Joystick, Direction Pad, Arrow Keys can generate navigation events. | |
| FPopupMethodReply | Called to figure out whether we can make new windows for popups within this viewport. | ||
| TOptional< bool > | OnQueryShowFocus
(
const EFocusCause InFocusCause |
Called to determine if we should render the focus brush. | |
| FReply | Called when the top level window associated with the viewport has been requested to close. | ||
| FReply | OnTouchEnded
(
const FGeometry& MyGeometry, |
Called when a touchpad touch is ended (finger lifted) | |
| FReply | OnTouchFirstMove
(
const FGeometry& MyGeometry, |
Called when a touchpad touch has first moved after initial press | |
| FReply | OnTouchForceChanged
(
const FGeometry& MyGeometry, |
Called when a touchpad touch force changes, but may or may not have moved | |
| FReply | OnTouchGesture
(
const FGeometry& MyGeometry, |
Called on a touchpad gesture event | |
| FReply | OnTouchMoved
(
const FGeometry& MyGeometry, |
Called when a touchpad touch is moved (finger moved) | |
| FReply | OnTouchStarted
(
const FGeometry& MyGeometry, |
Called when a touchpad touch is started (finger down) | |
| FReply | OnViewportActivated
(
const FWindowActivateEvent& InActivateEvent |
Called when the viewports top level window is being Activated | |
| void | Called when the viewport has been requested to close. | ||
| void | OnViewportDeactivated
(
const FWindowActivateEvent& InActivateEvent |
Called when the viewports top level window is being Deactivated | |
| bool | Returns true if the viewport should be vsynced. | ||
| void | Performs any ticking necessary by this handle |