A Slate color can be a directly specified value, or the color can be pulled from a WidgetStyle.
更多...
#include <SlateColor.h>
A Slate color can be a directly specified value, or the color can be pulled from a WidgetStyle.
- 示例
- /github/workspace/Engine/Source/Runtime/UMG/Public/Components/Widget.h.
◆ FSlateColor() [1/3]
| FSlateColor::FSlateColor |
( |
| ) |
|
|
inline |
Default constructor.
Uninitialized Slate colors are Fuchsia by default.
◆ FSlateColor() [2/3]
Creates a new Slate color with the specified values.
- 参数
-
| InColor | The color value to assign. |
◆ FSlateColor() [3/3]
Creates a new Slate color that is linked to the given values.
- 参数
-
| InColor | The color value to assign. |
◆ GetColor()
Gets the color value represented by this Slate color.
- 参数
-
| InWidgetStyle | The widget style to use when this color represents a foreground or subdued color. |
- 返回
- The color value.
- 参见
- GetSpecifiedColor
◆ GetSpecifiedColor()
◆ IsColorSpecified()
| bool FSlateColor::IsColorSpecified |
( |
| ) |
const |
|
inline |
Checks whether the values for this color have been specified.
- 返回
- true if specified, false otherwise.
- 参见
- GetSpecifiedColor
◆ operator!=()
| bool FSlateColor::operator!= |
( |
const FSlateColor & |
Other | ) |
const |
|
inline |
Compares this color with another for inequality.
- 参数
-
- 返回
- false if the two colors are equal, true otherwise.
◆ operator==()
| bool FSlateColor::operator== |
( |
const FSlateColor & |
Other | ) |
const |
|
inline |
Compares this color with another for equality.
- 参数
-
- 返回
- true if the two colors are equal, false otherwise.
◆ 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()
◆ UseSubduedForeground()
| static FSlateColor FSlateColor::UseSubduedForeground |
( |
| ) |
|
|
inlinestatic |
- 返回
- an FSlateColor that is the subdued version of the widget's foreground.
该结构体的文档由以下文件生成: