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

Implements a manager for Slate windows. 更多...

#include <SlateWindowHelper.h>

静态 Public 成员函数

static void ArrangeWindowToFront (TArray< TSharedRef< SWindow > > &Windows, const TSharedRef< SWindow > &WindowToBringToFront)
 Reorders the given collection of windows so the specified window is brought to the front. 更多...
 
static void BringWindowToFront (TArray< TSharedRef< SWindow > > &Windows, const TSharedRef< SWindow > &BringMeToFront)
 Put 'BringMeToFront' at the font of the list of 'WindowsToReorder'. 更多...
 
static bool CheckWorkAreaForWindows (const TArray< TSharedRef< SWindow > > &WindowsToSearch, const FSlateRect &WorkAreaRect)
 Checks whether any of the given windows overlap the specified work area. 更多...
 
static bool ContainsWindow (const TArray< TSharedRef< SWindow > > &WindowsToSearch, const TSharedRef< SWindow > &WindowToFind)
 Checks whether the given collection of windows contains the specified window. 更多...
 
static bool FindPathToWidget (const TArray< TSharedRef< SWindow > > &WindowsToSearch, TSharedRef< const SWidget > InWidget, FWidgetPath &OutWidgetPath, EVisibility VisibilityFilter=EVisibility::Visible)
 Searches for the specified widget and generates a full path to it. 更多...
 
static TSharedPtr< SWindow > FindWindowByPlatformWindow (const TArray< TSharedRef< SWindow > > &WindowsToSearch, const TSharedRef< FGenericWindow > &PlatformWindow)
 Searches the given collection of windows to find the Slate window that corresponds to the specified platform window. 更多...
 
static void RemoveWindowFromList (TArray< TSharedRef< SWindow > > &Windows, const TSharedRef< SWindow > &WindowToRemove)
 Removes the specified window from the given collection of windows. 更多...
 

静态 Protected 成员函数

static TSharedRef< SWindow > BringToFrontInParent (const TSharedRef< SWindow > &WindowToBringToFront)
 Make BringMeToFront first among its peers. 更多...
 

详细描述

Implements a manager for Slate windows.

成员函数说明

◆ ArrangeWindowToFront()

static void FSlateWindowHelper::ArrangeWindowToFront ( TArray< TSharedRef< SWindow > > &  Windows,
const TSharedRef< SWindow > &  WindowToBringToFront 
)
static

Reorders the given collection of windows so the specified window is brought to the front.

参数
WindowsThe collection of windows to reorder.
WindowToBringToFrontThe window to bring to the front.

◆ BringToFrontInParent()

static TSharedRef< SWindow > FSlateWindowHelper::BringToFrontInParent ( const TSharedRef< SWindow > &  WindowToBringToFront)
staticprotected

Make BringMeToFront first among its peers.

i.e. make it the last window in its parent's list of child windows.

返回
The top-most window whose children were re-arranged

◆ BringWindowToFront()

static void FSlateWindowHelper::BringWindowToFront ( TArray< TSharedRef< SWindow > > &  Windows,
const TSharedRef< SWindow > &  BringMeToFront 
)
static

Put 'BringMeToFront' at the font of the list of 'WindowsToReorder'.

The top-most (front-most) window is last in Z-order and therefore is added to the end of the list.

参数
WindowsAn ordered list of windows.
BingMeToFrontThe window to bring to front.

◆ CheckWorkAreaForWindows()

static bool FSlateWindowHelper::CheckWorkAreaForWindows ( const TArray< TSharedRef< SWindow > > &  WindowsToSearch,
const FSlateRect &  WorkAreaRect 
)
static

Checks whether any of the given windows overlap the specified work area.

参数
WindowsToSearchThe collection of windows to check.
WorkAreaRectThe work area to check.
返回
true if at least one window overlaps with the work area, false otherwise.

◆ ContainsWindow()

static bool FSlateWindowHelper::ContainsWindow ( const TArray< TSharedRef< SWindow > > &  WindowsToSearch,
const TSharedRef< SWindow > &  WindowToFind 
)
static

Checks whether the given collection of windows contains the specified window.

参数
WindowsToSearchThe collection of windows to search.
WindowToFindThe window to find.
返回
true if the collection contains the window, false otherwise.

◆ FindPathToWidget()

static bool FSlateWindowHelper::FindPathToWidget ( const TArray< TSharedRef< SWindow > > &  WindowsToSearch,
TSharedRef< const SWidget >  InWidget,
FWidgetPath &  OutWidgetPath,
EVisibility  VisibilityFilter = EVisibility::Visible 
)
static

Searches for the specified widget and generates a full path to it.

Note: this is a relatively slow operation!

参数
InWidgetWidget to generate a path to.
OutWidgetPathThe generated widget path.
VisibilityFilterWidgets must have this type of visibility to be included the path.
返回
True if the widget path was found.

◆ FindWindowByPlatformWindow()

static TSharedPtr< SWindow > FSlateWindowHelper::FindWindowByPlatformWindow ( const TArray< TSharedRef< SWindow > > &  WindowsToSearch,
const TSharedRef< FGenericWindow > &  PlatformWindow 
)
static

Searches the given collection of windows to find the Slate window that corresponds to the specified platform window.

参数
WindowsToSearchThe collection of windows to search.
PlatformWindowThe platform window to find the Slate window for.
返回
The corresponding Slate window, or nullptr if it was not found.

◆ RemoveWindowFromList()

static void FSlateWindowHelper::RemoveWindowFromList ( TArray< TSharedRef< SWindow > > &  Windows,
const TSharedRef< SWindow > &  WindowToRemove 
)
static

Removes the specified window from the given collection of windows.

参数
WindowsThe collection of windows.
WindowToRemoveThe window to remove.

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