engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Protected 成员函数 | 友元 | 所有成员列表
FSlateNotificationManager类 参考

A class which manages a group of notification windows
更多...

#include <NotificationManager.h>

Public 成员函数

TSharedPtr< SNotificationItem > AddNotification (const FNotificationInfo &Info)
 Adds a floating notification 更多...
 
bool AreNotificationsAllowed () const
 
void ForceNotificationsInFront (const TSharedRef< SWindow > InWindow)
 Called back from the SlateApplication when a window is activated/resized We need to keep notifications topmost in the z-order so we manage it here directly as there isn't a cross-platform OS-level way of making a 'topmost child'. 更多...
 
void GetWindows (TArray< TSharedRef< SWindow > > &OutWindows) const
 Gets all the windows that represent notifications 更多...
 
void QueueNotification (FNotificationInfo *Info)
 Thread safe method of queuing a notification for presentation on the next tick 更多...
 
void SetAllowNotifications (const bool bShouldAllow)
 Sets whether notifications should be displayed at all 更多...
 
void SetRootWindow (const TSharedRef< SWindow > InRootWindow)
 Provide a window under which all notifications should nest.
 
void Tick ()
 Update the manager
 

静态 Public 成员函数

static FSlateNotificationManager & Get ()
 Gets the instance of this manager

 

Protected 成员函数

TSharedRef< SNotificationList > CreateStackForArea (const FSlateRect &InRectangle)
 Create a notification list for the specified screen rectangle
 
 FSlateNotificationManager ()
 Protect constructor as this is a singleton
 
void ShutdownOnPreExit ()
 FCoreDelegates::OnPreExit shutdown callback
 

友元

class SNotificationList
 

详细描述

A class which manages a group of notification windows

成员函数说明

◆ AddNotification()

TSharedPtr< SNotificationItem > FSlateNotificationManager::AddNotification ( const FNotificationInfo &  Info)

Adds a floating notification

参数
InfoContains various settings used to initialize the notification

◆ AreNotificationsAllowed()

bool FSlateNotificationManager::AreNotificationsAllowed ( ) const
inline
返回
Checks whether notifications are currently enabled

◆ ForceNotificationsInFront()

void FSlateNotificationManager::ForceNotificationsInFront ( const TSharedRef< SWindow >  InWindow)

Called back from the SlateApplication when a window is activated/resized We need to keep notifications topmost in the z-order so we manage it here directly as there isn't a cross-platform OS-level way of making a 'topmost child'.

参数
ActivateEventInformation about the activation event

◆ GetWindows()

void FSlateNotificationManager::GetWindows ( TArray< TSharedRef< SWindow > > &  OutWindows) const

Gets all the windows that represent notifications

返回
an array of windows that contain notifications.

◆ QueueNotification()

void FSlateNotificationManager::QueueNotification ( FNotificationInfo *  Info)

Thread safe method of queuing a notification for presentation on the next tick

参数
InfoPointer to heap allocated notification info. Released by FSlateNotificationManager once the notification is displayed;

◆ SetAllowNotifications()

void FSlateNotificationManager::SetAllowNotifications ( const bool  bShouldAllow)
inline

Sets whether notifications should be displayed at all

参数
bShouldAllowWhether notifications should be enabled. It defaults to on.

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