![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SlateApplicationBase.h>
Inheritance diagram for FSlateApplicationBase:Static Public Member Functions | |
| static FSlateApplicationBase & | Get () |
| static bool | IsInitialized () |
Static Public Attributes | |
| SLATECORE_API static const uint32 | CursorPointerIndex = ETouchIndex::CursorPointerIndex |
| SLATECORE_API static const uint32 | CursorUserIndex = 0 |
| SLATECORE_API static const FPlatformUserId | SlateAppPrimaryPlatformUser = FPlatformUserId::CreateFromInternalId(0) |
Protected Types | |
| enum class | ECustomSafeZoneState : uint8 { Unset , Set , Debug } |
Static Protected Attributes | |
| static SLATECORE_API TSharedPtr< FSlateApplicationBase > | CurrentBaseApplication = nullptr |
| static SLATECORE_API TSharedPtr< class GenericApplication > | PlatformApplication = nullptr |
Friends | |
| class | SWidget |
| class | FHitTesting |
Base class for Slate applications.
This class currently serves a temporary workaround for solving SlateCore dependencies to FSlateApplication. It should probably be removed once FSlateApplication has been refactored into SlateCore.
|
strongprotected |
| FSlateApplicationBase::FSlateApplicationBase | ( | ) |
|
inlinevirtual |
|
pure virtual |
Associates a top level Slate Window with a native window and ensures that it is tracked properly by the application. Calling this method will cause the window to be displayed (unless specified otherwise), so be sure to associate content with the window object you're passing in first!
| InSlateWindow | A SlateWindow to which to add a native window. |
| bShowImmediately | true to show the window, false if you're going to call ShowWindow() yourself later. |
Implemented in FSlateApplication.
Implemented in FSlateApplication.
|
pure virtual |
Reorders an array of windows so the specified window is "brought to the front"
Implemented in FSlateApplication.
|
pure virtual |
Calculates the tooltip window position.
| InAnchorRect | The current(suggested) window position and size of an area which may not be covered by the popup. |
| InSize | The size of the tooltip window. |
| bAutoAdjustForDPIScale | Whether the method should attempt to correct for the DPI scale of the monitor. |
| CursorOverlapMode | Whether the tooltip window should be permitted to open under the position of the cursor. |
Implemented in FSlateApplication.
| FSlateApplicationBase::DECLARE_EVENT_OneParam | ( | FSlateApplicationBase | , |
| FOnGlobalInvalidationToggled | , | ||
| bool | |||
| ) |
| FSlateApplicationBase::DECLARE_EVENT_OneParam | ( | FSlateApplicationBase | , |
| FOnInvalidateAllWidgets | , | ||
| bool | |||
| ) |
Gets a delegate that is invoked when a global invalidate of all widgets should occur
|
protectedpure virtual |
Gets whether or not a particular widget has mouse capture.
Implemented in FSlateApplication.
|
protectedpure virtual |
Gets whether or not a particular widget has mouse capture by a user.
Implemented in FSlateApplication.
|
pure virtual |
Searches for the specified widget and generates a full path to it.
Note: this is a relatively slow operation!
| InWidget | Widget to generate a path to |
| OutWidgetPath | The generated widget path |
| VisibilityFilter | Widgets must have this type of visibility to be included the path |
Implemented in FSlateApplication.
|
pure virtual |
Returns the window the provided widget is contained in
| InWidget | Widget to find the window for |
Implemented in FSlateApplication.
|
inlinestatic |
Returns the current instance of the application. The application should have been initialized before this method is called
|
pure virtual |
Gets the active regular top-level window. A regular window is a non-menu, non-tooltip, non-cursor decorator window
Implemented in FSlateApplication.
|
pure virtual |
Gets the active top-level window.
Implemented in FSlateApplication.
|
pure virtual |
|
pure virtual |
Implemented in FSlateApplication.
| void FSlateApplicationBase::GetCachedDisplayMetrics | ( | FDisplayMetrics & | OutDisplayMetrics | ) | const |
Gets the application's cached display metrics.
| OutDisplayMetrics | Will contain the display metrics. |
|
pure virtual |
Implemented in FSlateApplication.
Gets Slate's current cached real time.
This time value is updated every frame right before we tick widgets and is the recommended time value to use for UI animations and transitions, as opposed to calling FPlatformTime::Seconds() (which is generally slower)
Implemented in FSlateApplication.
|
pure virtual |
|
pure virtual |
|
inline |
| void FSlateApplicationBase::GetDisplayMetrics | ( | FDisplayMetrics & | OutDisplayMetrics | ) |
Gets the application's display metrics.
| OutDisplayMetrics | Will contain the display metrics. |
| const FHitTesting & FSlateApplicationBase::GetHitTesting | ( | ) | const |
|
pure virtual |
Gets the widget that currently has keyboard focus, if any.
Implemented in FSlateApplication.
|
pure virtual |
Gets the last known position of the cursor.
Implemented in FSlateApplication.
|
protectedpure virtual |
Implementation of GetMouseCaptor which can be overridden without warnings.
Implemented in FSlateApplication.
|
pure virtual |
Implemented in FSlateApplication.
|
pure virtual |
Implemented in FSlateApplication.
|
pure virtual |
Implemented in FSlateApplication.
|
pure virtual |
Implemented in FSlateApplication.
|
inline |
|
inlinevirtual |
Gets the platform application.
|
inline |
|
pure virtual |
Gets the rectangle of the current preferred work area.
Implemented in FSlateApplication.
|
inline |
Gets the renderer being used to draw this application.
| void FSlateApplicationBase::GetSafeZoneSize | ( | FMargin & | SafeZone, |
| const UE::Slate::FDeprecateVector2DParameter & | OverrideSize | ||
| ) |
Whether the software cursor is enabled for this application.
Implemented in FSlateApplication.
|
pure virtual |
Gets the desired visibility of the software cursor
Implemented in FSlateApplication.
|
pure virtual |
Get a list of all top-level windows in the application, excluding virtual windows.
Implemented in FSlateApplication.
|
pure virtual |
Implemented in FSlateApplication.
|
pure virtual |
Get the highest level of window transparency support currently enabled by this application
Implemented in FSlateApplication.
Gets whether or not a widget has captured the mouse.
Implemented in FSlateApplication.
|
protectedpure virtual |
Gets whether or not a particular widget has any users focus, and if so the type of focus (first one found).
Implemented in FSlateApplication.
|
pure virtual |
Checks whether the specified widget has any descendants which are currently focused.
| Widget | The widget to check. |
Implemented in FSlateApplication.
|
protectedpure virtual |
Gets whether or not a particular widget has the specified users focus, and if so the type of focus.
Implemented in FSlateApplication.
|
pure virtual |
Checks whether the specified widget has any descendants which are currently focused for the specified user user.
| Widget | The widget to check. |
| InUserIndex | Index of the user that we want to check for. |
Implemented in FSlateApplication.
Gets whether or not a widget has captured the mouse for a particular user.
Implemented in FSlateApplication.
Notifies all invalidation panels that they should invalidate their contents Note: this is a very expensive call and should only be done in non-performance critical situations
Whether the application is active.
Implemented in FSlateApplication.
| bool FSlateApplicationBase::IsCustomSafeZoneSet | ( | ) | const |
Checks whether an UI for external services such as Steam is open.
Implemented in FSlateApplication.
| bool FSlateApplicationBase::IsSlateAsleep | ( | ) |
|
protectedpure virtual |
Gets whether or not a particular widget is directly hovered. Directly hovered means that the widget is directly under the pointer, is not true for ancestors tho they are Hovered.
Implemented in FSlateApplication.
|
pure virtual |
Implemented in FSlateApplication.
|
protectedpure virtual |
Given a window, locate a widget under the cursor in it; returns an invalid path if cursor is not over this window.
Implemented in FSlateApplication.
|
pure virtual |
Given the screen-space coordinate of the mouse cursor, searches for a string of widgets that are under the mouse.
The widgets will be returned with the associated geometry. The first item will always be the top-level window while the last item will be the leaf-most widget.
Implemented in FSlateApplication.
|
pure virtual |
|
pure virtual |
Creates a tool tip with the specified text.
| ToolTipText | The text to assign to the tool tip. |
Implemented in FSlateApplication.
|
pure virtual |
Creates a tool tip with the specified text.
| ToolTipText | The text attribute to assign to the tool tip. |
Implemented in FSlateApplication.
|
pure virtual |
Creates a title bar for the specified window.
| InArgs | The creation arguments for the titlebar |
| OutTitleBar | Will hold a pointer to the title bar's interface. |
Implemented in FSlateApplication.
|
inline |
|
inline |
|
pure virtual |
Destroying windows has implications on some OSs (e.g. destroying Win32 HWNDs can cause events to be lost).
Slate strictly controls when windows are destroyed.
| WindowToDestroy | The window to queue for destruction. |
Implemented in FSlateApplication.
| void FSlateApplicationBase::ResetCustomSafeZone | ( | ) |
|
pure virtual |
Sets the focus for all users to the specified widget. The widget must be allowed to receive focus.
| InFocusPath | WidgetPath to the Widget to being focused. |
| InCause | The reason that focus is changing. |
Implemented in FSlateApplication.
|
pure virtual |
Sets the focus for all users to the specified widget unless that user is focused on a descendant. The widget must be allowed to receive focus.
| InWidget | WidgetPath to the Widget to being focused. |
| InCause | The reason that focus is changing. |
Implemented in FSlateApplication.
|
pure virtual |
Sets keyboard focus to the specified widget. The widget must be allowed to receive keyboard focus.
| InFocusPath | WidgetPath to the Widget to being focused |
| InCause | The reason that keyboard focus is changing |
Implemented in FSlateApplication.
|
pure virtual |
Sets user focus to the specified widget. The widget must be allowed to receive focus.
| InUserIndex | Index of the user that we want to change the focus of. |
| InFocusPath | WidgetPath to the Widget to being focused. |
| InCause | The reason that focus is changing. |
Implemented in FSlateApplication.
|
pure virtual |
Sets the focus for the specified user to the specified widget unless that user is focused on a descendant. The widget must be allowed to receive focus.
| InUserIndex | Index of the user that we want to change the focus of. |
| InFocusPath | WidgetPath to the Widget to being focused. |
| InCause | The reason that focus is changing. |
Implemented in FSlateApplication.
|
protectedpure virtual |
Gets whether or not a particular widget should show user focus.
Implemented in FSlateApplication.
|
protected |
Used to determine if any active timer handles are ready to fire. Means we need to tick slate even if no user interaction.
|
protected |
|
friend |
|
protected |
Critical section for active timer registration as it can be called from the movie thread and the game thread
Whether any active timers are pending for this Slate tick. Updated once a tick in AnyActiveTimersArePending().
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
static |
|
static |
|
protected |
Safe Zone ratio to override platform settings
|
protected |
If Safe Zone ratio has been manually set, unset, or set via debug
|
protected |
|
protected |
|
protected |
multicast delegate to broadcast when a global invalidate is requested
|
staticprotected |
|
protected |
|
static |
The primary platform user for this application. They will own the mouse and cursor by default. Default ID is 0