UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FWidgetStyle Class Reference

#include <WidgetStyle.h>

Public Member Functions

 FWidgetStyle ()
 
FWidgetStyleBlendColorAndOpacityTint (const FLinearColor &InTint)
 
FWidgetStyleBlendOpacity (float InOpacity)
 
FWidgetStyleSetForegroundColor (const FLinearColor &InForeground)
 
SLATECORE_API FWidgetStyleSetForegroundColor (const TAttribute< FSlateColor > &InForeground)
 
const FLinearColorGetColorAndOpacityTint () const
 
const FLinearColorGetForegroundColor () const
 
const FLinearColorGetSubduedForegroundColor () const
 

Detailed Description

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

Constructor & Destructor Documentation

◆ FWidgetStyle()

FWidgetStyle::FWidgetStyle ( )
inline

Default constructor.

Member Function Documentation

◆ BlendColorAndOpacityTint()

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

Blends the current tint color with the specified tint.

Parameters
InTintThe color to blend with.
Returns
This instance (for method chaining).

◆ BlendOpacity()

FWidgetStyle & FWidgetStyle::BlendOpacity ( float  InOpacity)
inline

Blends the current tint color with the specified alpha.

Parameters
InTintThe color to blend with.
Returns
This instance (for method chaining).

◆ GetColorAndOpacityTint()

const FLinearColor & FWidgetStyle::GetColorAndOpacityTint ( ) const
inline

Gets the style's color opacity and tint.

Returns
Current opacity and tint.
See also
GetForegroundColor, GetSubduedForegroundColor

◆ GetForegroundColor()

const FLinearColor & FWidgetStyle::GetForegroundColor ( ) const
inline

Gets the style's foreground color.

Returns
Current foreground color.
See also
GetColorAndOpacityTint, GetSubduedForegroundColor, SetForegroundColor

◆ GetSubduedForegroundColor()

const FLinearColor & FWidgetStyle::GetSubduedForegroundColor ( ) const
inline

Gets the style's subdued color.

Returns
Current subdued color.
See also
GetColorAndOpacityTint, GetForegroundColor

◆ SetForegroundColor() [1/2]

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

Sets the current foreground color from the given linear color.

Parameters
InForegroundThe foreground color value to set.
Returns
This instance (for method chaining).
See also
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.

Parameters
InForegroundThe foreground color to set.
Returns
This instance (for method chaining).
See also
GetForegroundColor

The documentation for this class was generated from the following files: