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