Navigation
API > API/Runtime > API/Runtime/SlateCore
Contains info about those aspects of widget appearance that should be propagated hierarchically.
| Name | FWidgetStyle |
| Type | class |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Styling/WidgetStyle.h |
| Include Path | #include "Styling/WidgetStyle.h" |
Syntax
class FWidgetStyle
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FWidgetStyle() |
Default constructor. | Styling/WidgetStyle.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| SubdueAmount | const float | Styling/WidgetStyle.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ColorAndOpacityTint | FLinearColor | Styling/WidgetStyle.h | ||
| ForegroundColor | FLinearColor | Styling/WidgetStyle.h | ||
| SubduedForeground | FLinearColor | Styling/WidgetStyle.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FWidgetStyle & BlendColorAndOpacityTint
(
const FLinearColor& InTint |
Blends the current tint color with the specified tint. | Styling/WidgetStyle.h | |
FWidgetStyle & BlendOpacity
(
float InOpacity |
Blends the current tint color with the specified alpha. | Styling/WidgetStyle.h | |
const FLinearColor & GetColorAndOpacityTint () |
Gets the style's color opacity and tint. | Styling/WidgetStyle.h | |
const FLinearColor & GetForegroundColor () |
Gets the style's foreground color. | Styling/WidgetStyle.h | |
const FLinearColor & GetSubduedForegroundColor () |
Gets the style's subdued color. | Styling/WidgetStyle.h | |
FWidgetStyle & SetForegroundColor
(
const FLinearColor& InForeground |
Sets the current foreground color from the given linear color. | Styling/WidgetStyle.h | |
FWidgetStyle & SetForegroundColor
(
const TAttribute< FSlateColor >& InForeground |
Sets the current foreground color from the given Slate color attribute. | Styling/WidgetStyle.h |