A central repository that can be used to track and manage chunks of slate style data.
更多...
#include <SlateStyleRegistry.h>
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.
- 参数
-
| InSlateStyleName | The 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.
- 参数
-
| OutResources | Array 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
- 参数
-
| BrushName | The 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
- 参数
-
| Iter | A 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.
- 参数
-
| ISlateStyle | interface 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).
- 参数
-
| StyleSetName | The 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.
- 参数
-
| ISlateStyle | Interface to the style to remove. |
该类的文档由以下文件生成: