#include <SlateColor.h>
A Slate color can be a directly specified value, or the color can be pulled from a WidgetStyle.
- Examples
- /work/Engine/Source/Runtime/UMG/Public/Components/Widget.h.
◆ FSlateColor() [1/6]
| FSlateColor::FSlateColor |
( |
| ) |
|
|
inline |
Default constructor.
Uninitialized Slate colors are Fuchsia by default.
◆ FSlateColor() [2/6]
Creates a new Slate color with the specified values.
- Parameters
-
| InColor | The color value to assign. |
◆ FSlateColor() [3/6]
| FSlateColor::FSlateColor |
( |
const FColor |
InColor | ) |
|
|
inline |
Creates a new Slate color with the specified values.
- Parameters
-
| InColor | The color value to assign. |
◆ FSlateColor() [4/6]
◆ FSlateColor() [5/6]
◆ FSlateColor() [6/6]
◆ GetColor()
Gets the color value represented by this Slate color.
- Parameters
-
| InWidgetStyle | The widget style to use when this color represents a foreground or subdued color. |
- Returns
- The color value.
- See also
- GetSpecifiedColor
◆ GetColorFromTable()
| const FLinearColor & FSlateColor::GetColorFromTable |
( |
| ) |
const |
|
protected |
◆ GetSpecifiedColor()
◆ IsColorSpecified()
| bool FSlateColor::IsColorSpecified |
( |
| ) |
const |
|
inline |
Checks whether the values for this color have been specified.
- Returns
- true if specified, false otherwise.
- See also
- GetSpecifiedColor
◆ operator!=()
Compares this color with another for inequality.
- Parameters
-
- Returns
- false if the two colors are equal, true otherwise.
◆ operator==()
Compares this color with another for equality.
- Parameters
-
- Returns
- true if the two colors are equal, false otherwise.
◆ SerializeFromMismatchedTag()
◆ Unlink()
| void FSlateColor::Unlink |
( |
| ) |
|
|
inline |
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. Nothing happens if the color rule is not set to UseColor_Specified_Link.
◆ UseForeground()
◆ UseStyle()
- Returns
- an FSlateColor that is the subdued version of the widget's foreground.
◆ UseSubduedForeground()
- Returns
- an FSlateColor that is the subdued version of the widget's foreground.
◆ ColorUseRule
◆ SpecifiedColor
The documentation for this struct was generated from the following files: