Navigation
API > API/Runtime > API/Runtime/Slate
Implements a Slate widget that renders a simple color gradient.
| Name | SSimpleGradient |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Colors/SSimpleGradient.h |
| Include Path | #include "Widgets/Colors/SSimpleGradient.h" |
Syntax
class SSimpleGradient : public SCompoundWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SSimpleGradient
- FSlateControlledConstruction → SWidget → SCompoundWidget → SSimpleGradient
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
SSimpleGradient() |
Widgets/Colors/SSimpleGradient.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/SSimpleGradient.h | |
| EndColor | TSlateAttribute< FLinearColor, EInvalidateWidgetReason::Paint > | The rightmost gradient color | Widgets/Colors/SSimpleGradient.h | |
| Orientation | EOrientation | Horizontal or vertical gradient | Widgets/Colors/SSimpleGradient.h | |
| StartColor | TSlateAttribute< FLinearColor, EInvalidateWidgetReason::Paint > | The leftmost gradient color | Widgets/Colors/SSimpleGradient.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
Constructs the widget | Widgets/Colors/SSimpleGradient.h |
Protected
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual int32 OnPaint
(
const FPaintArgs& Args, |
Widgets/Colors/SSimpleGradient.h |