engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FWidgetStyle类 参考

Contains info about those aspects of widget appearance that should be propagated hierarchically. 更多...

#include <WidgetStyle.h>

Public 成员函数

FWidgetStyle & BlendColorAndOpacityTint (const FLinearColor &InTint)
 Blends the current tint color with the specified tint. 更多...
 
FWidgetStyle & BlendOpacity (float InOpacity)
 Blends the current tint color with the specified alpha. 更多...
 
 FWidgetStyle ()
 Default constructor.
 
const FLinearColor & GetColorAndOpacityTint () const
 Gets the style's color opacity and tint. 更多...
 
const FLinearColor & GetForegroundColor () const
 Gets the style's foreground color. 更多...
 
const FLinearColor & GetSubduedForegroundColor () const
 Gets the style's subdued color. 更多...
 
FWidgetStyle & SetForegroundColor (const FLinearColor &InForeground)
 Sets the current foreground color from the given linear color. 更多...
 
FWidgetStyle & SetForegroundColor (const TAttribute< FSlateColor > &InForeground)
 Sets the current foreground color from the given Slate color attribute. 更多...
 

详细描述

Contains info about those aspects of widget appearance that should be propagated hierarchically.

成员函数说明

◆ BlendColorAndOpacityTint()

FWidgetStyle & FWidgetStyle::BlendColorAndOpacityTint ( const FLinearColor &  InTint)
inline

Blends the current tint color with the specified tint.

参数
InTintThe color to blend with.
返回
This instance (for method chaining).

◆ BlendOpacity()

FWidgetStyle & FWidgetStyle::BlendOpacity ( float  InOpacity)
inline

Blends the current tint color with the specified alpha.

参数
InTintThe color to blend with.
返回
This instance (for method chaining).

◆ GetColorAndOpacityTint()

const FLinearColor & FWidgetStyle::GetColorAndOpacityTint ( ) const
inline

Gets the style's color opacity and tint.

返回
Current opacity and tint.
参见
GetForegroundColor, GetSubduedForegroundColor

◆ GetForegroundColor()

const FLinearColor & FWidgetStyle::GetForegroundColor ( ) const
inline

Gets the style's foreground color.

返回
Current foreground color.
参见
GetColorAndOpacityTint, GetSubduedForegroundColor, SetForegroundColor

◆ GetSubduedForegroundColor()

const FLinearColor & FWidgetStyle::GetSubduedForegroundColor ( ) const
inline

Gets the style's subdued color.

返回
Current subdued color.
参见
GetColorAndOpacityTint, GetForegroundColor

◆ SetForegroundColor() [1/2]

FWidgetStyle & FWidgetStyle::SetForegroundColor ( const FLinearColor &  InForeground)
inline

Sets the current foreground color from the given linear color.

参数
InForegroundThe foreground color value to set.
返回
This instance (for method chaining).
参见
GetForegroundColor

◆ SetForegroundColor() [2/2]

FWidgetStyle & FWidgetStyle::SetForegroundColor ( const TAttribute< FSlateColor > &  InForeground)

Sets the current foreground color from the given Slate color attribute.

If the attribute passed in is not set, the foreground will remain unchanged.

参数
InForegroundThe foreground color to set.
返回
This instance (for method chaining).
参见
GetForegroundColor

该类的文档由以下文件生成: