engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FPopupSupport类 参考

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.

成员函数说明

◆ RegisterClickNotification()

FDelegateHandle FPopupSupport::RegisterClickNotification ( const TSharedRef< SWidget > &  NotifyWhenClickedOutsideMe,
const FOnClickedOutside &  InNotification 
)

Register for a notification when the user clicks outside a specific widget.

参数
NotifyWhenClickedOutsideMeWhen the user clicks outside this widget, fire a notification.
InNotificationThe notification to invoke.

◆ SendNotifications()

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.

◆ UnregisterClickNotification()

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.


该类的文档由以下文件生成: