Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Rendering > API/Runtime/SlateCore/Rendering/FSlateDrawElement
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Rendering/DrawElementTypes.h |
| Include | #include "Rendering/DrawElementTypes.h" |
| Source | /Engine/Source/Runtime/SlateCore/Private/Rendering/DrawElementTypes.cpp |
static void MakeGradient
&40;
FSlateWindowElementList & ElementList,
uint32 InLayer,
const FPaintGeometry & PaintGeometry,
TArray< FSlateGradientStop > InGradientStops,
EOrientation InGradientType,
ESlateDrawEffect InDrawEffects,
FVector4f CornerRadius
&41;
Remarks
Creates a gradient element
Parameters
| Name | Description |
|---|---|
| ElementList | The list in which to add elements |
| InLayer | The layer to draw the element on |
| PaintGeometry | DrawSpace position and dimensions; see FPaintGeometry |
| InGradientStops | List of gradient stops which define the element |
| InGradientType | The type of gradient (I.E Horizontal, vertical) |
| InDrawEffects | Optional draw effects to apply |
| CornerRadius | Rounds the corners of the box created by the gradient by the specified radius |