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

A central repository that can be used to track and manage chunks of slate style data. 更多...

#include <SlateStyleRegistry.h>

静态 Public 成员函数

static const ISlateStyle * FindSlateStyle (const FName &InSlateStyleName)
 Find a slate style in the repository. 更多...
 
static void GetAllResources (TArray< const FSlateBrush * > &OutResources)
 Populate an array of slate brushes with all of the resources used by the registered styles. 更多...
 
static TArray< FName > GetSylesUsingBrush (const FName BrushName)
 Gets the names of every style entry using a brush Note: this function is expensive and is not designed to be used in performance critical situations 更多...
 
static bool IterateAllStyles (const TFunctionRef< bool(const ISlateStyle &)> &Iter)
 Iterate all the slate style known to this registry 更多...
 
static void RegisterSlateStyle (const ISlateStyle &InSlateStyle)
 Add a slate style to the repository. 更多...
 
static void UnRegisterSlateStyle (const FName StyleSetName)
 Removes a slate style from the repository (by name). 更多...
 
static void UnRegisterSlateStyle (const ISlateStyle &InSlateStyle)
 Remove a slate style from the repository. 更多...
 

详细描述

A central repository that can be used to track and manage chunks of slate style data.

成员函数说明

◆ FindSlateStyle()

static const ISlateStyle * FSlateStyleRegistry::FindSlateStyle ( const FName &  InSlateStyleName)
static

Find a slate style in the repository.

参数
InSlateStyleNameThe name of the slate style to find.
返回
The slate style, or null if it couldn't be found

◆ GetAllResources()

static void FSlateStyleRegistry::GetAllResources ( TArray< const FSlateBrush * > &  OutResources)
static

Populate an array of slate brushes with all of the resources used by the registered styles.

参数
OutResourcesArray of slate brushes to populate.

◆ GetSylesUsingBrush()

static TArray< FName > FSlateStyleRegistry::GetSylesUsingBrush ( const FName  BrushName)
static

Gets the names of every style entry using a brush Note: this function is expensive and is not designed to be used in performance critical situations

参数
BrushNameThe name of the brush to find style entries from
返回
Array of style names using the brush

◆ IterateAllStyles()

static bool FSlateStyleRegistry::IterateAllStyles ( const TFunctionRef< bool(const ISlateStyle &)> &  Iter)
static

Iterate all the slate style known to this registry

参数
IterA predicate to call for each known style that returns true to continue iteration, and false to terminate iteration
返回
true where to loop completed, of false if it was terminated by the predicate

◆ RegisterSlateStyle()

static void FSlateStyleRegistry::RegisterSlateStyle ( const ISlateStyle &  InSlateStyle)
static

Add a slate style to the repository.

参数
ISlateStyleinterface to a user-definable style to add.

◆ UnRegisterSlateStyle() [1/2]

static void FSlateStyleRegistry::UnRegisterSlateStyle ( const FName  StyleSetName)
static

Removes a slate style from the repository (by name).

参数
StyleSetNameThe name of the style set to remove.

◆ UnRegisterSlateStyle() [2/2]

static void FSlateStyleRegistry::UnRegisterSlateStyle ( const ISlateStyle &  InSlateStyle)
static

Remove a slate style from the repository.

参数
ISlateStyleInterface to the style to remove.

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