Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Styling
Inheritance Hierarchy
- ISlateStyle
- FSlateStyleSet
- FDisplayClusterLaunchEditorStyle
- FDMXEditorStyle
- FExampleCharacterFXEditorStyle
- FGroomEditorStyle
- FIKRetargetEditorStyle
- FIKRigEditorStyle
- FInsightsCoreStyle::FStyle
- FInsightsFrontendStyle::FStyle
- FMLDeformerEditorStyle
- FNearestNeighborModelEditorStyle
- FNiagaraEditorStyle
- FSlateStyle
- FStarshipCoreStyle::FStyle
- FStateTreeEditorStyle
- FToolWidgetsStyle
- FUVEditorStyle
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Styling/SlateStyle.h |
| Include | #include "Styling/SlateStyle.h" |
Syntax
class FSlateStyleSet : public ISlateStyle
Remarks
A slate style chunk that contains a collection of named properties that guide the appearance of Slate. At the moment, basically FAppStyle.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TMap< FName, FSlateBrush * > | BrushResources | ||
| TMap< FName, FLinearColor > | ColorValues | Color property storage. | |
| FString | ContentRootDir | This dir is Engine/Editor/Slate folder | |
| FString | CoreContentRootDir | This dir is Engine/Slate folder to share the items | |
| FSlateBrush * | DefaultBrush | FSlateBrush property storage | |
| TMap< FName, TWeakPtr< FSlateDynamicImageBrush > > | DynamicBrushes | A list of dynamic brushes | |
| TMap< FName, float > | FloatValues | Float property storage. | |
| TMap< FName, FSlateFontInfo > | FontInfoResources | FSlateFontInfo property storage. | |
| TMap< FName, FMargin > | MarginValues | FMargin property storage. | |
| TSet< FName > | MissingResources | A set of resources that were requested, but not found. | |
| FName | ParentStyleName | ||
| TMap< FName, FSlateColor > | SlateColorValues | FSlateColor property storage. | |
| TMap< FName, FSlateSound > | Sounds | SlateSound property storage | |
| FName | StyleSetName | The name used to identity this style set | |
| TMap< FName, FVector2f > | Vector2DValues | FVector2D property storage. | |
| TMap< FName, TSharedRef< struct FSlateWidgetStyle > > | WidgetStyleValues |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSlateStyleSet
(
const FName& InStyleSetName |
Construct a style chunk. | ||
FSlateStyleSet
(
FSlateStyleSet&& |
|||
FSlateStyleSet
(
const FSlateStyleSet& |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const ISlateStyle * | |||
| bool | IsBrushFromFile
(
const FString& FilePath, |
||
| void | |||
| FString | RootToContentDir
(
const FString& RelativePath, |
||
| FString | RootToContentDir
(
const WIDECHAR* RelativePath, |
||
| FString | RootToContentDir
(
const ANSICHAR* RelativePath, |
||
| FString | RootToContentDir
(
const FString& RelativePath |
||
| FString | RootToContentDir
(
const WIDECHAR* RelativePath |
||
| FString | RootToContentDir
(
const ANSICHAR* RelativePath |
||
| FString | RootToCoreContentDir
(
const ANSICHAR* RelativePath |
||
| FString | RootToCoreContentDir
(
const WIDECHAR* RelativePath |
||
| FString | RootToCoreContentDir
(
const FString& RelativePath |
||
| FString | RootToCoreContentDir
(
const ANSICHAR* RelativePath, |
||
| FString | RootToCoreContentDir
(
const WIDECHAR* RelativePath, |
||
| FString | RootToCoreContentDir
(
const FString& RelativePath, |
||
| FORCENOINLINE void | Set
(
FName PropertyName, |
Set FSlateSound properties | |
| FORCENOINLINE void | Add a FSlateBrush property to this style's collection | ||
| FORCENOINLINE void | Add a FMargin property to this style's collection. | ||
| FORCENOINLINE void | Set
(
const FName PropertyName, |
Add a FSlateLinearColor property to this style's collection. | |
| FORCENOINLINE void | |||
| FORCENOINLINE void | Set
(
const FName PropertyName, |
Set FLinearColor property. | |
| FORCENOINLINE void | |||
| FORCENOINLINE void | |||
| FORCENOINLINE void | Add a FVector2D property to this style's collection. | ||
| FORCENOINLINE void | Set float properties | ||
| FORCENOINLINE void | Set
(
const FName PropertyName, |
||
| FORCENOINLINE void | Set
(
FName PropertyName, |
Set FSlateFontInfo properties | |
| void | SetContentRoot
(
const FString& InContentRootDir |
||
| void | SetCoreContentRoot
(
const FString& InCoreContentRootDir |
||
| void | SetParentStyleName
(
const FName& InParentStyleName |
Name a Parent Style to fallback on if the requested styles are specified in this style |
Overridden from ISlateStyle
| Type | Name | Description | |
|---|---|---|---|
| const FSlateBrush * | GetBrush
(
const FName PropertyName, |
||
| const FLinearColor & | GetColor
(
const FName PropertyName, |
||
| FString | |||
| FSlateBrush * | Get default FSlateBrush. | ||
| const TSharedPtr< FSlateDynamicImageBrush > | GetDynamicImageBrush
(
const FName BrushTemplate, |
||
| const TSharedPtr< FSlateDynamicImageBrush > | GetDynamicImageBrush
(
const FName BrushTemplate, |
||
| const TSharedPtr< FSlateDynamicImageBrush > | GetDynamicImageBrush
(
const FName BrushTemplate, |
||
| TArray< FName > | GetEntriesUsingBrush
(
const FName BrushName |
Gets the names of every style entry using a brush in this style Note: this function is expensive and is not designed to be used in performance critical situations | |
| float | GetFloat
(
const FName PropertyName, |
||
| FSlateFontInfo | GetFontStyle
(
const FName PropertyName, |
||
| const FMargin & | GetMargin
(
const FName PropertyName, |
||
| const FSlateBrush * | GetOptionalBrush
(
const FName PropertyName, |
Just like GetBrush, but returns DefaultBrush instead of the "missing brush" image when the resource is not found. | |
| void | GetResources
(
TArray< const FSlateBrush* >& OutResources |
Populate an array of FSlateBrush with resources consumed by this style. | |
| const FSlateColor | GetSlateColor
(
const FName PropertyName, |
||
| const FSlateSound & | GetSound
(
const FName PropertyName, |
Look up a sound property specified by PropertyName and optional Specifier. | |
| TSet< FName > | GetStyleKeys () |
||
| const FName & | |||
| FVector2D | GetVector
(
const FName PropertyName, |
||
| const FSlateWidgetStyle * | GetWidgetStyleInternal
(
const FName DesiredTypeName, |
||
| void | Log
(
ISlateStyle::EStyleMessageSeverity Severity, |
||
| void | LogMissingResource
(
EStyleMessageSeverity Severity, |
||
| const TSharedPtr< FSlateDynamicImageBrush > | MakeDynamicImageBrush
(
const FName BrushTemplate, |