Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework > API/Runtime/Slate/Framework/Application
Inheritance Hierarchy
- FSlateApplicationBase
- FGenericApplicationMessageHandler
- FSlateApplication
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Framework/Application/SlateApplication.h |
| Include | #include "Framework/Application/SlateApplication.h" |
Syntax
class FSlateApplication :
public FSlateApplicationBase,
public FGenericApplicationMessageHandler
Variables
| Type | Name | Description | |
|---|---|---|---|
| FSlateApplication::FOnModalLoopTickEvent & | OnApplicationActivationStateChanged | ||
| FDragDropCheckingOverride | OnDragDropCheckOverride |
Constructors
No constructors are accessible with public or protected access.
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Activates the Game Viewport if it is properly childed under a window | ||
| void | AddModalWindow
(
TSharedRef< SWindow > InSlateWindow, |
Adds a modal window to the application. | |
| TSharedRef< SWindow > | AddWindowAsNativeChild
(
TSharedRef< SWindow > InSlateWindow, |
Associates a top level Slate Window with a native window, and "natively" parents that window to the specified Slate window. | |
| bool | |||
| bool | |||
| UE::Slate::FDeprecateVector2DResult | CalculatePopupWindowPosition
(
const FSlateRect& InAnchor, |
Calculates the popup window position from the passed in window position and size. | |
| bool | Returns true if this slate application is ready to open modal windows | ||
| void | Cancels any in flight drag and drops | ||
| bool | Returns true if this slate application is ready to display windows. | ||
| void | ClearAllUserFocus
(
EFocusCause ReasonFocusIsChanging |
Releases the focus for all users from whatever it currently is on. | |
| void | ClearKeyboardFocus
(
const EFocusCause ReasonFocusIsChanging |
Clears keyboard focus, if any widget is currently focused | |
| void | ClearUserFocus
(
uint32 UserIndex, |
Releases the users focus from whatever it currently is on. | |
| void | Closes all active windows immediately | ||
| void | CloseToolTip () |
Closes the open tool-tip, if a tool-tip is open | |
| TSharedRef< FSlateApplication > | Create
(
const TSharedRef< class GenericApplication >& InPlatformApplication |
||
| void | Create () |
||
| void | |||
| void | DestroyWindowImmediately
(
TSharedRef< SWindow > WindowToDestroy |
HACK: Don't use this unless shutting down a game viewport Game viewport windows need to be destroyed instantly or else the viewport could tick and access deleted data | |
| void | Destroy the native and slate windows in the array provided. | ||
| void | Dismisses all open menus | ||
| void | DismissMenu
(
const TSharedPtr< IMenu >& InFromMenu |
Dismisses a menu and all its children | |
| void | DismissMenuByWidget
(
const TSharedRef< SWidget >& InWidgetInMenu |
Dismisses a menu and all its children. | |
| void | DrawPrepass
(
TSharedPtr< SWindow > DrawOnlyThisWindow |
Pre-pass step before drawing windows to compute geometry size and reshape autosized windows | |
| void | DrawWindowAndChildren
(
const TSharedRef< SWindow >& WindowToDraw, |
Draws a window and its children | |
| void | DrawWindows () |
Draws Slate windows. Should only be called by the application's main loop or renderer. | |
| void | Enters debugging mode which is a special state that causes the Slate application to tick in place which in the middle of a stack frame | ||
| void | Disable Slate components when an external, non-slate, modal window is brought up. | ||
| void | Re-enable disabled Slate components when a non-slate modal window is dismissed. | ||
| void | ExternalUIChange
(
bool bIsOpening |
Sets the display state of external UI such as Steam. | |
| TSharedPtr< SWindow > | FindBestParentWindowForDialogs
(
const TSharedPtr< SWidget >& InWidget, |
Given an optional widget, try and get the most suitable parent window to use with dialogs (such as file and directory pickers). | |
| const void * | FindBestParentWindowHandleForDialogs
(
const TSharedPtr< SWidget >& InWidget, |
Given an optional widget, try and get the most suitable parent window handle to use with dialogs (such as file and directory pickers). | |
| int32 | FindInputPreProcessor
(
TSharedPtr< class IInputProcessor > InputProcessor |
Get the index of a registered pre-processor. | |
| TSharedPtr< IMenu > | FindMenuInWidgetPath
(
const FWidgetPath& InWidgetPath |
Attempt to locate a menu that contains the specified widget | |
| TSharedRef< FSlateVirtualUserHandle > | FindOrCreateVirtualUser
(
int32 VirtualUserIndex |
||
| void | Occurs before Tick(), after all pointer and keyboard input has been processed. | ||
| void | Flushes the render state of slate, releasing accesses and flushing all render commands. | ||
| void | ForceRedrawWindow
(
const TSharedRef< SWindow >& InWindowToDraw |
Forces the window to redraw immediately. | |
| void | ForEachUser
(
TFunctionRef< void(FSlateUser&)> InPredicate, |
Allows you do some operations for every registered user. | |
| void | GeneratePathToWidgetChecked
(
TSharedRef< const SWidget > InWidget, |
||
| bool | GeneratePathToWidgetUnchecked
(
TSharedRef< const SWidget > InWidget, |
||
| FSlateApplication & | Get () |
Returns the current instance of the application. | |
| TSharedPtr< SWindow > | |||
| bool | |||
| void | GetAllVisibleChildWindows
(
TArray< TSharedRef< SWindow > >& OutWindows, |
Gets all visible child windows of a window. | |
| void | GetAllVisibleWindowsOrdered
(
TArray< TSharedRef< SWindow > >& OutWindows |
Gets all visible slate windows ordered from back to front based on child hierarchies | |
| const float | Returns the running average delta time (smoothed over several frames) | ||
| float | Returns the running average delta time (smoothed over several frames) Unlike GetAverageDeltaTime() it excludes exceptional situations, such as when throttling mode is active. | ||
| float | Getter for the cursor radius | ||
| TSharedPtr< FSlateUser > | |||
| TSharedPtr< const FSlateUser > | Get the standard 'default' user (there's always guaranteed to be at least one). | ||
| const float | GetDeltaTime () |
Returns the real time delta since Slate last ticked widgets | |
| TSharedPtr< class FDragDropOperation > | Get the current drag-dropping content | ||
| float | |||
| float | |||
| double | Gets time step in seconds if a fixed delta time is wanted. | ||
| TSharedPtr< SViewport > | Returns the game viewport registered with the slate application | ||
| TSharedRef< class FGlobalTabmanager > | |||
| bool | |||
| void | GetInitialDisplayMetrics
(
FDisplayMetrics& OutDisplayMetrics |
||
| FInputDeviceId | |||
| FInputDeviceId | |||
| IInputInterface * | |||
| TArray< TSharedRef< SWindow > > | |||
| double | |||
| FSlateLastUserInteractionTimeUpdateEvent & | |||
| TSharedPtr< SWidget > | |||
| FModifierKeysState | Returns the current modifier keys state | ||
| void * | Returning platform-specific value designating window that captures mouse, or nullptr if mouse isn't captured | ||
| TSharedRef< FNavigationConfig > | |||
| const TAttribute< bool > & | Returns the attribute that can be used by widgets to check if the application is in normal execution mode Don't hold a reference to this anywhere that can exist when this application closes | ||
| FOnModalLoopTickEvent & | Get the FOnModalLoopTickEvent for the Slate Application. | ||
| TSharedRef< FSlateUser > | GetOrCreateUser
(
FPlatformUserId PlatformUserId |
Locates the SlateUser object corresponding to the index, creating a new one if it doesn't exist. | |
| TSharedRef< FSlateUser > | GetOrCreateUser
(
int32 UserIndex |
Locates the SlateUser object corresponding to the index, creating a new one if it doesn't exist. | |
| TSharedRef< FSlateUser > | GetOrCreateUser
(
const FInputEvent& InputEvent |
||
| TSharedRef< FSlateUser > | GetOrCreateUser
(
FInputDeviceId DeviceId |
Locates the SlateUser object corresponding to the input device id, creating a new one if it doesn't exist. | |
| FPopupSupport & | |||
| const TSet< FKey > & | |||
| TSharedRef< FNavigationConfig > | GetRelevantNavConfig
(
int32 UserIndex |
||
| const FStyleNode * | GetRootStyle () |
||
| float | GetSoundDuration
(
const FSlateSound& Sound |
||
| ITextInputMethodSystem * | |||
| bool | True if transforming mouse input coordinates to account for fullscreen distortions | ||
| TSharedPtr< const FSlateUser > | GetUser
(
int32 UserIndex |
Gets the user at the given index, null if the user does not exist. | |
| TSharedPtr< FSlateUser > | GetUser
(
const FInputEvent& InputEvent |
||
| TSharedPtr< const FSlateUser > | GetUser
(
const FInputEvent& InputEvent |
||
| TSharedPtr< FSlateUser > | GetUser
(
int32 UserIndex |
||
| TSharedPtr< FSlateUser > | GetUser
(
FPlatformUserId PlatformUser |
||
| TSharedPtr< const FSlateUser > | GetUserFromControllerId
(
int32 ControllerId |
Gets the user at the given index, null if the user does not exist. | |
| TSharedPtr< FSlateUser > | GetUserFromControllerId
(
int32 ControllerId |
||
| TSharedPtr< FSlateUser > | GetUserFromPlatformUser
(
FPlatformUserId PlatformUser |
||
| TSharedPtr< const FSlateUser > | GetUserFromPlatformUser
(
FPlatformUserId PlatformUser |
||
| int32 | GetUserIndexForController
(
int32 ControllerId |
||
| TOptional< int32 > | GetUserIndexForController
(
int32 ControllerId, |
||
| TOptional< int32 > | GetUserIndexForInputDevice
(
FInputDeviceId InputDeviceId |
||
| int32 | |||
| int32 | |||
| TOptional< int32 > | GetUserIndexForPlatformUser
(
FPlatformUserId PlatformUser |
||
| TSharedPtr< SWindow > | |||
| FSlateRect | GetWorkArea
(
const FSlateRect& InRect |
Get the work area that has the largest intersection with the specified rectangle | |
| void | GotoLineInSource
(
const FString& FileName, |
Opens the current platform's code editing IDE (if necessary) and focuses the specified line in the specified file. | |
| bool | HasOpenSubMenus
(
TSharedPtr< IMenu > InMenu |
||
| bool | HasTraveledFarEnoughToTriggerDrag
(
const FPointerEvent& PointerEvent, |
||
| bool | HasTraveledFarEnoughToTriggerDrag
(
const FPointerEvent& PointerEvent, |
||
| void | InitHighDPI
(
const bool bForceEnable |
Initializes high dpi support for the process | |
| TSharedRef< FSlateApplication > | InitializeAsStandaloneApplication
(
const TSharedRef< class FSlateRenderer >& PlatformRenderer, |
||
| TSharedRef< FSlateApplication > | InitializeAsStandaloneApplication
(
const TSharedRef< class FSlateRenderer >& PlatformRenderer |
||
| void | |||
| bool | InitializeRenderer
(
TSharedRef< FSlateRenderer > InRenderer, |
Initializes the renderer responsible for drawing all elements in this application | |
| void | InitializeSound
(
const TSharedRef< ISlateSoundDevice >& InSlateSoundDevice |
Set the slate sound provider that the slate app should use. | |
| bool | |||
| void | Removes references to FViewportRHI's. | ||
| bool | Are we drag-dropping right now? | ||
| bool | IsDragDroppingAffected
(
const FPointerEvent& InPointerEvent |
Are we drag-dropping and are we affected by this pointer event? | |
| bool | |||
| bool | |||
| bool | Returns true if a Slate application instance is currently initialized and ready | ||
| bool | |||
| bool | |||
| bool | Returns true if the we're currently processing mouse, keyboard, touch or gamepad input. | ||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | IsWindowInDestroyQueue
(
TSharedRef< SWindow > Window |
Is the window in the app's destroy queue? If so it will be destroyed next tick. | |
| void | LeaveDebuggingMode
(
bool bLeavingDebugForSingleStep |
Leaves debugging mode | |
| FWidgetPath | LocateWindowUnderMouse
(
UE::Slate::FDeprecateVector2DParameter ScreenspaceMouseCoordinate, |
||
| void | NativeApp_ShowKeyboard
(
bool bShow, |
Shows or hides an onscreen keyboard | |
| void | NavigateFromWidgetUnderCursor
(
const uint32 InUserIndex, |
Attempts to navigate directly to the widget currently under the given user's cursor | |
| void | NavigateToWidget
(
const uint32 UserIndex, |
Attempts to navigate directly to the given widget | |
| FSlateApplication::FApplicationActivationStateChangedEvent TBaseMulticastDelegate_OneParam | |||
| FOnApplicationMousePreInputButtonDownListener & | |||
| FOnApplicationPreInputKeyDownListener & | |||
| EDropEffect::Type | OnDragEnter
(
const TSharedRef< SWindow >& Window, |
||
| FOnFocusChanging & | |||
| FSlateTickEvent & | OnPostTick () |
Event after slate application ticks. | |
| FSimpleMulticastDelegate & | Event when the application is about to shutdown. | ||
| FSlateTickEvent & | OnPreTick () |
||
| void | OnShutdown () |
Called when the slate application is being shut down. | |
| FOnWindowDPIScaleChanged & | Event used to signal that a DPI change is about to happen | ||
| FUserRegisteredEvent & | |||
| FOnWindowBeingDestroyed & | |||
| FOnWindowDPIScaleChanged & | |||
| void | OverridePlatformApplication
(
TSharedPtr< class GenericApplication > InPlatformApplication |
Replace the current platform application with a custom version. | |
| void | OverridePlatformTextField
(
TUniquePtr< IPlatformTextField > PlatformTextField |
Replace the IPlatformTextField implementation with a custom one. | |
| void | PlaySound
(
const FSlateSound& SoundToPlay, |
Play SoundToPlay. Interrupt previous sound if one is playing. | |
| void | Polls game devices for input | ||
| void | PrivateDrawWindows
(
TSharedPtr< SWindow > DrawOnlyThisWindow |
Draws slate windows, optionally only drawing the passed in window | |
| bool | ProcessAnalogInputEvent
(
const FAnalogInputEvent& InAnalogInputEvent |
Called when a analog input values change | |
| void | ProcessApplicationActivationEvent
(
bool InAppActivated |
Called when the application is activated (i.e. one of its windows becomes active) or deactivated. | |
| void | ProcessCursorReply
(
const FCursorReply& CursorReply |
Apply any requests from the CursorReply | |
| bool | ProcessDragEnterEvent
(
TSharedRef< SWindow > WindowEntered, |
Called when a drag from an external (non-slate) source enters a window | |
| void | ProcessExternalReply
(
const FWidgetPath& CurrentEventPath, |
Apply any requests from the Reply to the application. E.g. Capture mouse | |
| bool | ProcessKeyCharEvent
(
const FCharacterEvent& InCharacterEvent |
Called when a character is entered | |
| bool | ProcessKeyDownEvent
(
const FKeyEvent& InKeyEvent |
Called when a key is pressed | |
| bool | ProcessKeyUpEvent
(
const FKeyEvent& InKeyEvent |
Called when a key is released | |
| void | ProcessMotionDetectedEvent
(
const FMotionEvent& InMotionEvent |
Called when motion is detected (controller or device) when polling game device state | |
| bool | ProcessMouseButtonDoubleClickEvent
(
const TSharedPtr< FGenericWindow >& PlatformWindow, |
Called by the native application in response to a mouse release. Routs the event to Slate Widgets. | |
| bool | ProcessMouseButtonDownEvent
(
const TSharedPtr< FGenericWindow >& PlatformWindow, |
Called by the native application in response to a mouse button press. | |
| bool | ProcessMouseButtonUpEvent
(
const FPointerEvent& MouseEvent |
Called by the native application in response to a mouse button release. | |
| bool | ProcessMouseMoveEvent
(
const FPointerEvent& MouseEvent, |
Called by the native application in response to a mouse move. Routs the event to Slate Widgets. | |
| bool | ProcessMouseWheelOrGestureEvent
(
const FPointerEvent& InWheelEvent, |
Called by the native application in response to a mouse wheel spin or a touch gesture. | |
| void | ProcessReply
(
const FWidgetPath& CurrentEventPath, |
Apply any requests from the Reply to the application. E.g. Capture mouse | |
| void | ProcessTouchEndedEvent
(
const FPointerEvent& InTouchEvent |
Called when a touchpad touch is ended (finger lifted) when polling game device state | |
| void | ProcessTouchMovedEvent
(
const FPointerEvent& InTouchEvent |
Called when a touchpad touch is moved (finger moved) when polling game device state | |
| void | ProcessTouchStartedEvent
(
const TSharedPtr< FGenericWindow >& PlatformWindow, |
Called when a touchpad touch is started (finger down) when polling game device state | |
| bool | ProcessWindowActivatedEvent
(
const FWindowActivateEvent& ActivateEvent |
Called by the native application in response to an activation or deactivation. | |
| void | PumpMessages () |
Pumps OS messages when a modal window or intra-frame debugging session exists | |
| TSharedPtr< IMenu > | PushHostedMenu
(
const TSharedPtr< IMenu >& InParentMenu, |
Creates a new hosted child Menu and adds it to the menu stack under the specified parent menu. | |
| TSharedPtr< IMenu > | PushHostedMenu
(
const TSharedRef< SWidget >& InParentWidget, |
Creates a new hosted Menu and adds it to the menu stack. | |
| TSharedPtr< IMenu > | PushMenu
(
const TSharedPtr< IMenu >& InParentMenu, |
Creates a new Menu and adds it to the menu stack under the specified parent menu. | |
| TSharedPtr< IMenu > | PushMenu
(
const TSharedRef< SWidget >& InParentWidget, |
Creates a new Menu and adds it to the menu stack. | |
| void | QueryCursor () |
Bubble a request for which cursor to display for widgets under the mouse or the widget that captured the mouse. | |
| void | RegisterGameViewport
(
TSharedRef< SViewport > InViewport |
Registers a game viewport with the Slate application so that specific messages can be routed directly to a viewport | |
| bool | RegisterInputPreProcessor
(
TSharedPtr< class IInputProcessor > InputProcessor, |
Adds input pre-processor if unique. | |
| TSharedRef< FSlateUser > | RegisterNewUser
(
int32 UserIndex, |
Register a new user with Slate. | |
| TSharedRef< FSlateUser > | RegisterNewUser
(
FPlatformUserId PlatformUserId, |
Register a new user with Slate. | |
| FDelegateHandle | RegisterOnWindowActionNotification
(
const FOnWindowAction& Notification |
Register for a notification when the window action occurs. | |
| void | RegisterViewport
(
TSharedRef< SViewport > InViewport |
Registers a viewport with the Slate application so that specific messages can be routed directly to a viewport This is for all viewports, there can be multiple of these as opposed to the singular "Game Viewport" | |
| void | RegisterVirtualWindow
(
TSharedRef< SWindow > InWindow |
Register another window that may be visible in a non-top level way that still needs to be able to maintain focus paths. | |
| void | ReleaseAllPointerCapture
(
int32 UserIndex |
Releases capture for every pointer belonging to the given user index particular user. | |
| void | Releases capture for every pointer on every user from whatever it currently is on. | ||
| void | Restores all input settings to their original values | ||
| void | Restores all pointer input settings to their original values | ||
| FReply | RouteMouseWheelOrGestureEvent
(
const FWidgetPath& WidgetsUnderPointer, |
Directly routes a pointer mouse wheel or gesture event to the widgets in the specified widget path. | |
| FReply | RoutePointerDoubleClickEvent
(
const FWidgetPath& WidgetsUnderPointer, |
Directly routes a pointer double click event to the widgets in the specified widget path | |
| FReply | RoutePointerDownEvent
(
const FWidgetPath& WidgetsUnderPointer, |
Directly routes a pointer down event to the widgets in the specified widget path | |
| bool | RoutePointerMoveEvent
(
const FWidgetPath& WidgetsUnderPointer, |
Directly routes a pointer move event to the widgets in the specified widget path | |
| FReply | RoutePointerUpEvent
(
const FWidgetPath& WidgetsUnderPointer, |
Directly routes a pointer up event to the widgets in the specified widget path | |
| void | SetAllowTooltips
(
bool bCanShow |
||
| void | SetAllUserFocus
(
const TSharedPtr< SWidget >& WidgetToFocus, |
Sets focus for all users to the SWidget passed in. | |
| void | SetAllUserFocusToGameViewport
(
EFocusCause ReasonFocusIsChanging |
Sets all users focus to the SWidget representing the currently active game viewport | |
| void | SetApplicationScale
(
float InScale |
||
| void | SetCursorRadius
(
float NewRadius |
Sets the hit detection radius of the cursor | |
| void | SetDragTriggerDistance
(
float ScreenPixels |
Set the size of the deadzone for dragging in screen pixels | |
| void | SetExitRequestedHandler
(
const FSimpleDelegate& OnExitRequestedHandler |
Assign a delegate to be called when this application is requesting an exit (e.g. when the last window is closed). | |
| void | SetFixedDeltaTime
(
double InSeconds |
Sets time step in seconds if a fixed delta time is wanted. | |
| void | SetGameIsFakingTouchEvents
(
const bool bIsFaking, |
Sets whether the application is treating mouse events as imitating touch events. | |
| void | SetHandleDeviceInputWhenApplicationNotActive
(
bool bAllow |
Mouse capture | |
| void | SetInputManager
(
TSharedRef< ISlateInputManager > InputManager |
Establishes the input mapping object used to map input sources to SlateUser indices | |
| bool | SetKeyboardFocus
(
const TSharedPtr< SWidget >& OptionalWidgetToFocus, |
Sets the Keyboard focus to the specified SWidget | |
| void | SetModalWindowStackEndedDelegate
(
FModalWindowStackEnded StackEndedDelegate |
Sets the delegate for when a modal window stack ends | |
| void | SetModalWindowStackStartedDelegate
(
FModalWindowStackStarted StackStartedDelegate |
Sets the delegate for when a modal window stack begins | |
| void | SetNavigationConfig
(
TSharedRef< FNavigationConfig > InNavigationConfig |
Sets the navigation config. | |
| void | SetPlatformApplication
(
const TSharedRef< class GenericApplication >& InPlatformApplication |
||
| void | SetPlatformCursorVisibility
(
bool bNewVisibility |
Changes the cursor type to Default (Visible) or None (Not Visible) | |
| void | SetUnhandledKeyDownEventHandler
(
const FOnKeyEvent& NewHandler |
Sets the handler for otherwise unhandled key down events. | |
| void | SetUnhandledKeyUpEventHandler
(
const FOnKeyEvent& NewHandler |
Sets the handler for otherwise unhandled key down events. | |
| void | Sets up any values that need to be based on the physical dimensions of the device. | ||
| bool | SetUserFocus
(
uint32 UserIndex, |
Sets specified user focus to the SWidget passed in. | |
| void | SetUserFocusToGameViewport
(
uint32 UserIndex, |
Sets specified user focus to the SWidget representing the currently active game viewport | |
| void | SetWidgetReflector
(
const TSharedRef< IWidgetReflector >& WidgetReflector |
Sets the widget reflector. | |
| void | SetWidgetReflectorAssetAccessDelegate
(
FAccessAsset AccessDelegate |
||
| void | SetWidgetReflectorQuerySourceAccessDelegate
(
FQueryAccessSourceCode QueryAccessDelegate |
||
| void | SetWidgetReflectorSourceAccessDelegate
(
FAccessSourceCode AccessDelegate |
||
| void | |||
| void | ShowVirtualKeyboard
(
bool bShow, |
Shows or hides an onscreen keyboard | |
| void | Shutdown
(
bool bShutdownPlatform |
||
| void | SpawnToolTip
(
const TSharedRef< IToolTip >& InToolTip, |
Spawns a tool tip window. If an existing tool tip window is open, it will be dismissed first. | |
| bool | |||
| bool | |||
| bool | TakeHDRScreenshot
(
const TSharedRef< SWidget >& Widget, |
Takes a screenshot of the widget writing the results into the color buffer provided, this version allows you to provide an inner area to screenshot. | |
| bool | TakeHDRScreenshot
(
const TSharedRef< SWidget >& Widget, |
Takes a screenshot of the widget writing the results into the color buffer provided. | |
| bool | TakeScreenshot
(
const TSharedRef< SWidget >& Widget, |
Takes a screenshot of the widget writing the results into the color buffer provided, this version allows you to provide an inner area to screenshot. | |
| bool | TakeScreenshot
(
const TSharedRef< SWidget >& Widget, |
Takes a screenshot of the widget writing the results into the color buffer provided. | |
| void | Engages or disengages application throttling based on user behavior | ||
| void | Tick
(
ESlateTickType TickType |
Ticks this application | |
| void | TickAndDrawWidgets
(
float DeltaTime |
Ticks and paints the actual Slate portion of the application. | |
| void | TickPlatform
(
float DeltaTime |
Pumps and ticks the platform. | |
| void | TickTime () |
Advances time for the application. | |
| FPointerEvent | TransformPointerEvent
(
const FPointerEvent& PointerEvent, |
Transforms a pointer event to account for non-standard viewport resolutions | |
| void | TryDumpNavigationConfig
(
TSharedPtr< FNavigationConfig > InNavigationConfig |
Tries to dumps the current navigation config along with callstack used to set it. | |
| void | Unregisters the current game viewport from Slate. | ||
| void | UnregisterInputPreProcessor
(
TSharedPtr< class IInputProcessor > InputProcessor |
Removes an input pre-processor. | |
| void | Unregister the notification because it is no longer desired. | ||
| void | UnregisterUser
(
int32 UserIndex |
||
| void | UnregisterVirtualWindow
(
TSharedRef< SWindow > InWindow |
Unregister a virtual window. | |
| void | UpdateToolTip
(
bool bAllowSpawningOfNewToolTips |
||
| void | UsePlatformCursorForCursorUser
(
bool bUsePlatformCursor |
Updates the cursor user's cursor to either the platform cursor or fake cursor |
Overridden from FSlateApplicationBase
| Type | Name | Description | |
|---|---|---|---|
| TSharedRef< SWindow > | AddWindow
(
TSharedRef< SWindow > InSlateWindow, |
Associates a top level Slate Window with a native window and ensures that it is tracked properly by the application. | |
| bool | |||
| void | ArrangeWindowToFrontVirtual
(
TArray< TSharedRef< SWindow >>& Windows, |
Reorders an array of windows so the specified window is "brought to the front" | |
| UE::Slate::FDeprecateVector2DResult | CalculateTooltipWindowPosition
(
const FSlateRect& InAnchorRect, |
Calculates the tooltip window position. | |
| bool | DoesWidgetHaveMouseCapture
(
const TSharedPtr< const SWidget > Widget |
Gets whether or not a particular widget has mouse capture. | |
| bool | DoesWidgetHaveMouseCaptureByUser
(
const TSharedPtr< const SWidget > Widget, |
Gets whether or not a particular widget has mouse capture by a user. | |
| bool | FindPathToWidget
(
TSharedRef< const SWidget > InWidget, |
Searches for the specified widget and generates a full path to it. | |
| TSharedPtr< SWindow > | FindWidgetWindow
(
TSharedRef< const SWidget > InWidget |
Finds the window that the provided widget resides in | |
| TSharedPtr< SWindow > | Gets the active regular top-level window. | ||
| TSharedPtr< SWindow > | Gets the active top-level window. | ||
| const FSlateBrush * | GetAppIcon () |
Gets the global application icon. | |
| const FSlateBrush * | |||
| float | Gets the ratio SlateUnit / ScreenPixel. | ||
| TSharedPtr< SWidget > | |||
| const double | Gets Slate's current cached real time. | ||
| UE::Slate::FDeprecateVector2DResult | GetCursorPos () |
Gets the current position of the cursor. | |
| UE::Slate::FDeprecateVector2DResult | Gets the size of the cursor.. | ||
| TSharedPtr< SWidget > | Gets the widget that currently has keyboard focus, if any. | ||
| UE::Slate::FDeprecateVector2DResult | Gets the last known position of the cursor. | ||
| TSharedPtr< SWidget > | Implementation of GetMouseCaptor which can be overridden without warnings. | ||
| EUINavigationAction | GetNavigationActionFromKey
(
const FKeyEvent& InKeyEvent |
Returns the navigation action corresponding to a key event. | |
| EUINavigation | GetNavigationDirectionFromAnalog
(
const FAnalogInputEvent& InAnalogEvent |
Returns navigation direction matching an anlog event, this is determined in the FNavigationConfig | |
| EUINavigation | GetNavigationDirectionFromKey
(
const FKeyEvent& InKeyEvent |
Returns navigation direction matching a key event, this is determined in the FNavigationConfig | |
| FSlateRect | Gets the rectangle of the current preferred work area. | ||
| bool | Whether the software cursor is enabled for this application. | ||
| EVisibility | Gets the desired visibility of the software cursor | ||
| const TArray< TSharedRef< SWindow > > | Get a list of all top-level windows in the application, excluding virtual windows. | ||
| TSharedPtr< SWidget > | GetUserFocusedWidget
(
uint32 UserIndex |
||
| EWindowTransparency | Get the highest level of window transparency support currently enabled by this application | ||
| bool | Gets whether or not a widget has captured the mouse. | ||
| TOptional< EFocusCause > | HasAnyUserFocus
(
const TSharedPtr< const SWidget > Widget |
Gets whether or not a particular widget has any users focus, and if so the type of focus (first one found). | |
| bool | HasFocusedDescendants
(
const TSharedRef< const SWidget >& Widget |
Checks whether the specified widget has any descendants which are currently focused. | |
| TOptional< EFocusCause > | HasUserFocus
(
const TSharedPtr< const SWidget > Widget, |
Gets whether or not a particular widget has the specified users focus, and if so the type of focus. | |
| bool | HasUserFocusedDescendants
(
const TSharedRef< const SWidget >& Widget, |
Checks whether the specified widget has any descendants which are currently focused for the specified user user. | |
| bool | HasUserMouseCapture
(
int32 UserIndex |
Gets whether or not a widget has captured the mouse for a particular user. | |
| bool | IsActive () |
Whether the application is active. | |
| bool | Checks whether an UI for external services such as Steam is open. | ||
| bool | IsWidgetDirectlyHovered
(
const TSharedPtr< const SWidget > Widget |
Gets whether or not a particular widget is directly hovered. | |
| bool | IsWindowHousingInteractiveTooltip
(
const TSharedRef< const SWindow >& WindowToTest |
||
| FWidgetPath | LocateWidgetInWindow
(
UE::Slate::FDeprecateVector2DParameter ScreenspaceMouseCoordinate, |
Given a window, locate a widget under the cursor in it; returns an invalid path if cursor is not over this window. | |
| TSharedRef< SImage > | MakeImage
(
const TAttribute< const FSlateBrush* >& Image, |
Creates an image widget. | |
| TSharedRef< IToolTip > | MakeToolTip
(
const FText& ToolTipText |
Creates a tool tip with the specified text. | |
| TSharedRef< IToolTip > | MakeToolTip
(
const TAttribute< FText >& ToolTipText |
Creates a tool tip with the specified text. | |
| TSharedRef< SWidget > | MakeWindowTitleBar
(
const FWindowTitleBarArgs& InArgs, |
Creates a title bar for the specified window. | |
| void | RequestDestroyWindow
(
TSharedRef< SWindow > WindowToDestroy |
Destroying windows has implications on some OSs (e.g. destroying Win32 HWNDs can cause events to be lost). | |
| void | SetAllUserFocus
(
const FWidgetPath& InFocusPath, |
Sets the focus for all users to the specified widget. The widget must be allowed to receive focus. | |
| void | SetAllUserFocusAllowingDescendantFocus
(
const FWidgetPath& InFocusPath, |
Sets the focus for all users to the specified widget unless that user is focused on a descendant. | |
| bool | SetKeyboardFocus
(
const FWidgetPath& InFocusPath, |
Sets keyboard focus to the specified widget. The widget must be allowed to receive keyboard focus. | |
| bool | SetUserFocus
(
const uint32 InUserIndex, |
Sets user focus to the specified widget. The widget must be allowed to receive focus. | |
| bool | ShowUserFocus
(
const TSharedPtr< const SWidget > Widget |
Gets whether or not a particular widget should show user focus. |
Overridden from FGenericApplicationMessageHandler
| Type | Name | Description | |
|---|---|---|---|
| bool | BeginReshapingWindow
(
const TSharedRef< FGenericWindow >& PlatformWindow |
||
| void | FinishedReshapingWindow
(
const TSharedRef< FGenericWindow >& PlatformWindow |
||
| FWindowSizeLimits | GetSizeLimitsForWindow
(
const TSharedRef< FGenericWindow >& Window |
||
| EWindowZone::Type | GetWindowZoneForPoint
(
const TSharedRef< FGenericWindow >& PlatformWindow, |
||
| void | HandleDPIScaleChanged
(
const TSharedRef< FGenericWindow >& Window |
||
| bool | OnApplicationActivationChanged
(
const bool IsActive |
||
| bool | OnControllerAnalog
(
FGamepadKeyNames::Type KeyName, |
||
| bool | OnControllerButtonPressed
(
FGamepadKeyNames::Type KeyName, |
||
| bool | OnControllerButtonReleased
(
FGamepadKeyNames::Type KeyName, |
||
| bool | |||
| bool | OnCursorSet () |
||
| EDropEffect::Type | OnDragDrop
(
const TSharedPtr< FGenericWindow >& Window |
||
| EDropEffect::Type | OnDragEnterExternal
(
const TSharedRef< FGenericWindow >& Window, |
||
| EDropEffect::Type | OnDragEnterFiles
(
const TSharedRef< FGenericWindow >& Window, |
||
| EDropEffect::Type | OnDragEnterText
(
const TSharedRef< FGenericWindow >& Window, |
||
| void | OnDragLeave
(
const TSharedPtr< FGenericWindow >& Window |
||
| EDropEffect::Type | OnDragOver
(
const TSharedPtr< FGenericWindow >& Window |
||
| void | |||
| bool | OnKeyChar
(
const TCHAR Character, |
||
| bool | OnKeyDown
(
const int32 KeyCode, |
||
| bool | OnKeyUp
(
const int32 KeyCode, |
||
| bool | OnMotionDetected
(
const FVector& Tilt, |
||
| bool | OnMouseDoubleClick
(
const TSharedPtr< FGenericWindow >& PlatformWindow, |
||
| bool | OnMouseDoubleClick
(
const TSharedPtr< FGenericWindow >& PlatformWindow, |
||
| bool | OnMouseDown
(
const TSharedPtr< FGenericWindow >& PlatformWindow, |
||
| bool | OnMouseDown
(
const TSharedPtr< FGenericWindow >& PlatformWindow, |
||
| bool | OnMouseMove () |
||
| bool | OnMouseUp
(
const EMouseButtons::Type Button, |
||
| bool | OnMouseUp
(
const EMouseButtons::Type Button |
||
| bool | OnMouseWheel
(
const float Delta, |
||
| bool | OnMouseWheel
(
const float Delta |
||
| void | OnMovedWindow
(
const TSharedRef< FGenericWindow >& PlatformWindow, |
||
| void | OnOSPaint
(
const TSharedRef< FGenericWindow >& PlatformWindow |
||
| bool | OnRawMouseMove
(
const int32 X, |
||
| void | OnResizingWindow
(
const TSharedRef< FGenericWindow >& PlatformWindow |
||
| bool | OnSizeChanged
(
const TSharedRef< FGenericWindow >& PlatformWindow, |
||
| bool | OnTouchEnded
(
const FVector2D& Location, |
||
| bool | OnTouchFirstMove
(
const FVector2D& Location, |
||
| bool | OnTouchForceChanged
(
const FVector2D& Location, |
||
| bool | OnTouchGesture
(
EGestureEvent GestureType, |
||
| bool | OnTouchMoved
(
const FVector2D& Location, |
||
| bool | OnTouchStarted
(
const TSharedPtr< FGenericWindow >& Window, |
||
| bool | OnWindowAction
(
const TSharedRef< FGenericWindow >& PlatformWindow, |
||
| bool | OnWindowActivationChanged
(
const TSharedRef< FGenericWindow >& PlatformWindow, |
||
| void | OnWindowClose
(
const TSharedRef< FGenericWindow >& PlatformWindow |
||
| void | SetCursorPos
(
const FVector2D& MouseCoordinate |
Sets the position of the cursor. | |
| bool | ShouldProcessUserInputMessages
(
const TSharedPtr< FGenericWindow >& PlatformWindow |
||
| void | ShouldSimulateGesture
(
EGestureEvent Gesture, |
||
| void | SignalSystemDPIChanged
(
const TSharedRef< FGenericWindow >& Window |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FApplicationActivationStateChangedEvent | |||
| FOnApplicationMousePreInputButtonDownListener | Gets a delegate that is invoked before the mouse input button down get process by slate widgets bubble system. | ||
| FOnApplicationPreInputKeyDownListener | Gets a delegate that is invoked before the input key get process by slate widgets bubble system. | ||
| FOnModalLoopTickEvent | Event type for when Slate is ticking during a modal dialog loop | ||
| FOnWindowBeingDestroyed | Delegate called when a window is about to be destroyed | ||
| FOnWindowDPIScaleChanged | Gets a delegate that is invoked in the editor when a windows dpi scale changes or when a widget window may have changed and DPI scale info needs to be checked | ||
| FSlateLastUserInteractionTimeUpdateEvent | |||
| FSlateTickEvent | Event before slate application ticks. | ||
| FUserRegisteredEvent | Delegate for when a new user has been registered. |
Typedefs
| Name | Description |
|---|---|
| FOnFocusChanging | Delegate called just before possible focus change |
Constants
| Name | Description |
|---|---|
| CurrentApplication | Application singleton |
| FixedDeltaTime | Constant delta time used on every Slate widget Tick if CVarSlateUseFixedDeltaTime is enabled. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | EnableMenuAnimations
(
const bool bEnableAnimations |
Enable Window Animations is no longer used and is a no-op so calling this function is no longer necessary. | |
| TSharedPtr< SWindow > | FindWidgetWindow
(
TSharedRef< const SWidget > InWidget, |
The FindWidgetWindow method that takes an FWidgetPath has been deprecated. If you dont need the widget path, use FindWidgetWindow(MyWidget) instead. If you need the path use GeneratePathToWidget | |
| void | ForEachUser
(
TFunctionRef< void(FSlateUser*)> InPredicate, |
ForEachUser now provides an FSlateUser& parameter to the lambda instead of an FSlateUser* | |
| EUINavigationAction | GetNavigationActionForKey
(
const FKey& InKey |
GetNavigationActionForKey doesn't handle multiple users properly, use GetNavigationActionFromKey instead | |
| void | ReleaseMouseCapture has been renamed to ReleaseAllPointerCapture() | ||
| void | ReleaseMouseCaptureForUser
(
int32 UserIndex |
ReleaseMouseCaptureForUser has been renamed to ReleaseAllPointerCapture(int32 UserIndex) | |
| void | SetAppIcon
(
const FSlateBrush*const InAppIcon |
SetAppIcon has been deprecated. Set "AppIcon" in your applications style to override the icon | |
| void | SetNavigationConfigFactory
(
TFunction< TSharedRef< FNavigationConfig >()> InNavigationConfigFactory |
Returning to a simpler method of registering navigation configs., is what you should use now. Note: You'll need to store per user state information yourself if you have any, like we do for repeats with the analog stick in FNavigationConfig::UserNavigationState, than Slate creating a new Navigation Config per user. |