Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Rendering/DrawElements.h |
Include |
#include "Rendering/DrawElements.h" |
Source |
/Engine/Source/Runtime/SlateCore/Private/Rendering/DrawElements.cpp |
static void MakeGradient
(
FSlateWindowElementList & ElementList,
uint32 InLayer,
const FPaintGeometry & PaintGeometry,
TArray< FSlateGradientStop > InGradientStops,
EOrientation InGradientType,
ESlateDrawEffect InDrawEffects,
FVector4 CornerRadius
)
Creates a gradient element
Parameter |
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 |