SSimpleGradient

Implements a Slate widget that renders a simple color gradient.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

AppFramework

Header

/Engine/Source/Runtime/AppFramework/Public/Widgets/Colors/SSimpleGradient.h

Include

#include "Widgets/Colors/SSimpleGradient.h"

Syntax

class SSimpleGradient : public SCompoundWidget

Remarks

Implements a Slate widget that renders a simple color gradient.

Functions

Name Description

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Constructs the widget

Overridden from SWidget

Name Description

Protected function Virtual Const

int32

 

OnPaint

(
    const FPaintArgs& Args,
    const FGeometry& AllottedGeometry,
    const FSlateRect& MyCullingRect,
    FSlateWindowElementList& OutDrawEl...,
    int32 LayerId,
    const FWidgetStyle& InWidgetStyle,
    bool bParentEnabled
)

The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children.

Classes

Name

Description

Public struct

FArguments

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss