Allow widgets to find out when someone clicked outside them. 更多...
#include <SlateApplication.h>
Public 成员函数 | |
| FDelegateHandle | RegisterClickNotification (const TSharedRef< SWidget > &NotifyWhenClickedOutsideMe, const FOnClickedOutside &InNotification) |
| Register for a notification when the user clicks outside a specific widget. 更多... | |
| void | SendNotifications (const FWidgetPath &WidgetsUnderCursor) |
| Given a WidgetPath that was clicked, send notifications to any subscribers that were not under the mouse. 更多... | |
| void | UnregisterClickNotification (FDelegateHandle InHandle) |
| NOTE: Only necessary if notification no longer desired. 更多... | |
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.