![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SlateApplication.h>
Public Member Functions | |
| SLATE_API void | SendNotifications (const FWidgetPath &WidgetsUnderCursor) |
| SLATE_API FDelegateHandle | RegisterClickNotification (const TSharedRef< SWidget > &NotifyWhenClickedOutsideMe, const FOnClickedOutside &InNotification) |
| SLATE_API void | UnregisterClickNotification (FDelegateHandle InHandle) |
Allow widgets to find out when someone clicked outside them. Currently needed by MenuAnchros.
| FDelegateHandle FPopupSupport::RegisterClickNotification | ( | const TSharedRef< SWidget > & | NotifyWhenClickedOutsideMe, |
| const FOnClickedOutside & | InNotification | ||
| ) |
Register for a notification when the user clicks outside a specific widget.
| NotifyWhenClickedOutsideMe | When the user clicks outside this widget, fire a notification. |
| InNotification | The notification to invoke. |
| void FPopupSupport::SendNotifications | ( | const FWidgetPath & | WidgetsUnderCursor | ) |
Given a WidgetPath that was clicked, send notifications to any subscribers that were not under the mouse. i.e. Send the "Someone clicked outside me" notifications.
| void FPopupSupport::UnregisterClickNotification | ( | FDelegateHandle | InHandle | ) |
NOTE: Only necessary if notification no longer desired. Stale notifications are cleaned up automatically.
Unregister the notification because it is no longer desired.