Navigation
API > API/Runtime > API/Runtime/AppFramework
A Color Theme is a name and an array of Colors. It also holds and array of refresh callbacks which it calls every time it changes at all.
| Name | FColorTheme |
| Type | class |
| Header File | /Engine/Source/Runtime/AppFramework/Public/Widgets/Colors/SColorThemes.h |
| Include Path | #include "Widgets/Colors/SColorThemes.h" |
Syntax
class FColorTheme
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FColorTheme
(
const FString& InName, |
Widgets/Colors/SColorThemes.h |
Classes
| Name | Remarks |
|---|---|
| FRefreshEvent |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Name | FString | Widgets/Colors/SColorThemes.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Colors | TArray< TSharedPtr< FColorInfo > > | Widgets/Colors/SColorThemes.h | ||
| RefreshEvent | FRefreshEvent | Widgets/Colors/SColorThemes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 FindApproxColor
(
const FLinearColor& InColor, |
Check to see if a color is already present in the list | Widgets/Colors/SColorThemes.h | |
const TArray< TSharedPtr< FColorInfo > > & GetColors() |
Get a list of all the colors in the theme | Widgets/Colors/SColorThemes.h | |
void InsertNewColor
(
TSharedPtr< FLinearColor > InColor, |
Insert a color at a specific point in the list and broadcast change | Widgets/Colors/SColorThemes.h | |
void InsertNewColor
(
TSharedPtr< FColorInfo > InColor, |
Widgets/Colors/SColorThemes.h | ||
FRefreshEvent & OnRefresh() |
Widgets/Colors/SColorThemes.h | ||
void RemoveAll() |
Remove all colors from the list, broadcast change | Widgets/Colors/SColorThemes.h | |
int32 RemoveColor
(
const TSharedPtr< FLinearColor > InColor |
Remove specific color from the list, broadcast change | Widgets/Colors/SColorThemes.h |