FColorTheme

A Color Theme is a name and an array of Colors.

Choose your operating system:

Windows

macOS

Linux

References

Module

AppFramework

Header

/Engine/Source/Runtime/AppFramework/Public/Widgets/Colors/SColorThemes.h

Include

#include "Widgets/Colors/SColorThemes.h"

Syntax

class FColorTheme

Remarks

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.

Variables

Name Description

Public variable

FString

 

Name

Constructors

Name Description

Public function

FColorTheme

(
    const FString& InName,
    const TArray< TSharedPtr< FColorInf...
)

Functions

Name Description

Public function Const

int32

 

FindApproxColor

(
    const FLinearColor& InColor,
    float Tolerance
)

Check to see if a color is already present in the list

Public function Const

const TArray...

 

GetColors()

Get a list of all the colors in the theme

Public function

void

 

InsertNewColor

(
    TSharedPtr< FLinearColor > InColor,
    int32 InsertPosition
)

Insert a color at a specific point in the list and broadcast change

Public function

void

 

InsertNewColor

(
    TSharedPtr< FColorInfo > InColor,
    int32 InsertPosition
)

Insert a color at a specific point in the list and broadcast change

Public function

FRefreshEven...

 

OnRefresh()

Public function

void

 

RemoveAll()

Remove all colors from the list, broadcast change

Public function

int32

 

RemoveColor

(
    const TSharedPtr< FLinearColor > In...
)

Remove specific color from the list, broadcast change

Classes

Name

Description

Public class

FRefreshEvent