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
| TSharedPtr< SNotificationItem > FSlateNotificationManager::AddNotification | ( | const FNotificationInfo & | Info | ) |
Adds a floating notification
| Info | Contains various settings used to initialize the notification |
|
inline |
| 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'.
| ActivateEvent | Information about the activation event |
| void FSlateNotificationManager::GetWindows | ( | TArray< TSharedRef< SWindow > > & | OutWindows | ) | const |
Gets all the windows that represent notifications
| void FSlateNotificationManager::QueueNotification | ( | FNotificationInfo * | Info | ) |
Thread safe method of queuing a notification for presentation on the next tick
| Info | Pointer to heap allocated notification info. Released by FSlateNotificationManager once the notification is displayed; |
|
inline |
Sets whether notifications should be displayed at all
| bShouldAllow | Whether notifications should be enabled. It defaults to on. |