Navigation
API > API/Runtime > API/Runtime/Slate
Implements a Slate widget that renders a color gradient consisting of multiple stops.
| Name | SComplexGradient |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Colors/SComplexGradient.h |
| Include Path | #include "Widgets/Colors/SComplexGradient.h" |
Syntax
class SComplexGradient : public SCompoundWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SComplexGradient
- FSlateControlledConstruction → SWidget → SCompoundWidget → SComplexGradient
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
SComplexGradient() |
Widgets/Colors/SComplexGradient.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~SComplexGradient() |
Widgets/Colors/SComplexGradient.h |
Structs
| Name | Remarks |
|---|---|
| FArguments |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bHasAlphaBackground | bool | Whether a checker background is displayed for alpha viewing. | Widgets/Colors/SComplexGradient.h | |
| DesiredSizeOverride | TSlateAttribute< TOptional< FVector2D >, EInvalidateWidgetReason::Layout > | Optional override for desired size | Widgets/Colors/SComplexGradient.h | |
| GradientColors | TSlateAttribute< TArray< FLinearColor >, EInvalidateWidgetReason::Paint > | The colors used in the gradient. | Widgets/Colors/SComplexGradient.h | |
| Orientation | EOrientation | Horizontal or vertical gradient. | Widgets/Colors/SComplexGradient.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
Construct this widget | Widgets/Colors/SComplexGradient.h |
Protected
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FVector2D ComputeDesiredSize
(
float LayoutScaleMultiplier |
Widgets/Colors/SComplexGradient.h | ||
virtual int32 OnPaint
(
const FPaintArgs& Args, |
Widgets/Colors/SComplexGradient.h |