Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Styling/SlateColor.h |
Include |
#include "Styling/SlateColor.h" |
struct FSlateColor
A Slate color can be a directly specified value, or the color can be pulled from a WidgetStyle.
Name | Description | ||
---|---|---|---|
|
ColorUseRule |
The rule for which color to pick. |
|
|
SpecifiedColor |
The current specified color; only meaningful when ColorToUse == UseColor_Specified. |
Name | Description | |
---|---|---|
|
FSlateColor() |
Default constructor. Uninitialized Slate colors are Fuchsia by default. |
|
FSlateColor ( |
Creates a new Slate color with the specified values. |
|
FSlateColor ( |
Creates a new Slate color with the specified values. |
|
FSlateColor ( |
Creates a new Slate color that is linked to the given values. |
|
FSlateColor ( |
|
|
FSlateColor ( |
Private constructor to prevent construction of invalid FSlateColors. |
Name | Description | |
---|---|---|
|
~FSlateColor() |
Name | Description | ||
---|---|---|---|
|
const FLinea... |
GetColor ( |
Gets the color value represented by this Slate color. |
|
const FLinea... |
GetColorFromTable() |
|
|
GetSpecifiedColor() |
Gets the specified color value. |
|
|
IsColorSpecified() |
Checks whether the values for this color have been specified. |
|
|
SerializeFromMismatchedTag ( |
Used to upgrade an FColor or FLinearColor property to an FSlateColor property |
|
|
Unlink() |
If the color rule is set to UseColor_Specified_Link, this will copy the linked color internally, unlink it and set the color rule to UseColor_Specified. |
|
|
UseForeground() |
||
|
UseStyle() |
||
|
UseSubduedForeground() |
Name | Description | ||
---|---|---|---|
|
operator!= ( |
Compares this color with another for inequality. |
|
|
operator== ( |
Compares this color with another for equality. |