SColorGradingWheel

Implements the color wheel widget.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Colors/SColorGradingWheel.h

Include

#include "Widgets/Colors/SColorGradingWheel.h"

Syntax

class SColorGradingWheel : public SLeafWidget

Remarks

Implements the color wheel widget.

Variables

Name Description

Public variable

uint8: 1

 

bIsAttributeDesiredWheelSizeSet

Public variable

uint8: 1

 

bIsAttributeExponentDisplacementSet

Protected variable

const FSlateBru...

 

Image

The color wheel image to show.

Protected variable

FOnColorGrading...

 

OnMouseCaptureBegin

Invoked when the mouse is pressed and a capture begins.

Protected variable

FOnColorGrading...

 

OnMouseCaptureEnd

Invoked when the mouse is let up and a capture ends.

Protected variable

FOnColorGrading...

 

OnValueChanged

Invoked when a new value is selected on the color wheel.

Protected variable

const FSlateBru...

 

SelectorImage

The color selector image to show.

Public variable

uint8

 

Union_IsAttributeSet

Constructors

Name Description

Public function

SColorGradingWheel()

Functions

Name Description

Protected function Const

FVector2D

 

CalcRelativePositionFromCenter()

Calculates the position of the color selection indicator.

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Construct this widget.

Protected function Const

TSlateAttrib...

 

GetDesiredWheelSizeAttribute()

Protected function Const

TSlateAttrib...

 

GetExponentDisplacementAttribute()

Protected function Const

TSlateAttrib...

 

GetSelectedColorAttribute()

Protected function

bool

 

ProcessMouseAction

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent,
    bool bProcessWhenOutsideColorWheel
)

Performs actions according to mouse click / move

Protected function

void

 

SetDesiredWheelSizeAttribute

(
    TAttribute< int32 > InDesiredWheelS...
)

Protected function

void

 

SetExponentDisplacementAttribute

(
    TAttribute< float > InExponentDispl...
)

Protected function

void

 

SetSelectedColorAttribute

(
    TAttribute< FLinearColor > InSelect...
)

Public function Static

const FSlate...

 

StaticWidgetClass()

Overridden from SWidget

Name Description

Public function Virtual Const

FVector2D

 

ComputeDesiredSize

(
    float
)

Overwritten from SWidget.

Public function Virtual

FReply

 

OnMouseButtonDoubleClick

(
    const FGeometry& InMyGeometry,
    const FPointerEvent& InMouseEvent
)

Called when a mouse button is double clicked. Override this in derived classes.

Public function Virtual

FReply

 

OnMouseButtonDown

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

MOUSE INPUT The system calls this method to notify the widget that a mouse button was pressed within it.

Public function Virtual

FReply

 

OnMouseButtonUp

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

The system calls this method to notify the widget that a mouse button was release within it.

Public function Virtual

FReply

 

OnMouseMove

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

The system calls this method to notify the widget that a mouse moved within it.

Public function Virtual Const

int32

 

OnPaint

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

Overwritten from SWidget.

Overridden from FSlateControlledConstruction

Name Description

Public function Virtual Const

const FSlate...

 

GetWidgetClass()

Classes

Name

Description

Public struct

FArguments

Typedefs

Deprecated Variables

Name Description

Protected variable

TSlateDeprecate...

 

DesiredWheelSize

Direct access to DesiredWheelSize is now deprecated. Use the setter or getter.

Protected variable

TSlateDeprecate...

 

ExponentDisplacement

Direct access to DesiredSizeOverride is now deprecated. Use the setter or getter.

Protected variable

TSlateDeprecate...

 

SelectedColor

Direct access to SelectedColor is now deprecated. Use the setter or getter.