engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
FSlateColor结构体 参考

A Slate color can be a directly specified value, or the color can be pulled from a WidgetStyle. 更多...

#include <SlateColor.h>

Public 成员函数

 FSlateColor ()
 Default constructor. 更多...
 
 FSlateColor (const FLinearColor &InColor)
 Creates a new Slate color with the specified values. 更多...
 
 FSlateColor (const TSharedRef< FLinearColor > &InColor)
 Creates a new Slate color that is linked to the given values. 更多...
 
const FLinearColor & GetColor (const FWidgetStyle &InWidgetStyle) const
 Gets the color value represented by this Slate color. 更多...
 
FLinearColor GetSpecifiedColor () const
 Gets the specified color value. 更多...
 
bool IsColorSpecified () const
 Checks whether the values for this color have been specified. 更多...
 
bool operator!= (const FSlateColor &Other) const
 Compares this color with another for inequality. 更多...
 
bool operator== (const FSlateColor &Other) const
 Compares this color with another for equality. 更多...
 
bool SerializeFromMismatchedTag (const struct FPropertyTag &Tag, FStructuredArchive::FSlot Slot)
 Used to upgrade an FColor or FLinearColor property to an FSlateColor property
 
void 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. 更多...
 

静态 Public 成员函数

static FSlateColor UseForeground ()
 
static FSlateColor UseSubduedForeground ()
 

详细描述

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]

FSlateColor::FSlateColor ( const FLinearColor &  InColor)
inline

Creates a new Slate color with the specified values.

参数
InColorThe color value to assign.

◆ FSlateColor() [3/3]

FSlateColor::FSlateColor ( const TSharedRef< FLinearColor > &  InColor)
inline

Creates a new Slate color that is linked to the given values.

参数
InColorThe color value to assign.

成员函数说明

◆ GetColor()

const FLinearColor & FSlateColor::GetColor ( const FWidgetStyle &  InWidgetStyle) const
inline

Gets the color value represented by this Slate color.

参数
InWidgetStyleThe widget style to use when this color represents a foreground or subdued color.
返回
The color value.
参见
GetSpecifiedColor

◆ GetSpecifiedColor()

FLinearColor FSlateColor::GetSpecifiedColor ( ) const
inline

Gets the specified color value.

返回
The specified color value.
参见
GetColor, IsColorSpecified

◆ 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.

参数
OtherThe other color.
返回
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.

参数
OtherThe other color.
返回
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()

static FSlateColor FSlateColor::UseForeground ( )
inlinestatic
返回
an FSlateColor that is the widget's foreground.

◆ UseSubduedForeground()

static FSlateColor FSlateColor::UseSubduedForeground ( )
inlinestatic
返回
an FSlateColor that is the subdued version of the widget's foreground.

该结构体的文档由以下文件生成: