Navigation
API > API/Runtime > API/Runtime/SlateCore
A central repository that can be used to track and manage chunks of slate style data.
| Name | FSlateStyleRegistry |
| Type | class |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Styling/SlateStyleRegistry.h |
| Include Path | #include "Styling/SlateStyleRegistry.h" |
Syntax
class FSlateStyleRegistry
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| SlateStyleRepository | TMap< FName, const ISlateStyle * > | Repository is just a collection of shared style pointers. | Styling/SlateStyleRegistry.h |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static const ISlateStyle * FindSlateStyle
(
const FName& InSlateStyleName |
Find a slate style in the repository. | Styling/SlateStyleRegistry.h | |
static void GetAllResources
(
TArray< const FSlateBrush* >& OutResources |
Populate an array of slate brushes with all of the resources used by the registered styles. | Styling/SlateStyleRegistry.h | |
| 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 | Styling/SlateStyleRegistry.h | ||
static bool IterateAllStyles
(
const TFunctionRef< bool(const ISlateStyle&)>& Iter |
Iterate all the slate style known to this registry | Styling/SlateStyleRegistry.h | |
static void RegisterSlateStyle
(
const ISlateStyle& InSlateStyle |
Add a slate style to the repository. | Styling/SlateStyleRegistry.h | |
static void UnRegisterSlateStyle
(
const ISlateStyle& InSlateStyle |
Remove a slate style from the repository. | Styling/SlateStyleRegistry.h | |
static void UnRegisterSlateStyle
(
const FName StyleSetName |
Removes a slate style from the repository (by name). | Styling/SlateStyleRegistry.h |