SColorPicker

Class for placing a color picker.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

AppFramework

Header

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

Include

#include "Widgets/Colors/SColorPicker.h"

Syntax

class SColorPicker : public SCompoundWidget

Remarks

Class for placing a color picker. If all you need is a standalone color picker, use the functions OpenColorPicker and DestroyColorPicker, since they hold a static instance of the color picker.

Destructors

Name Description

Public function

~SColorPicker()

Destructor.

Functions

Name Description

Protected function

bool

 

ApplyNewTargetColor

(
    bool bForceUpdate
)

Protected function

void

 

BackupColors()

Backup all the colors that are being modified

Protected function

void

 

BeginAnimation

(
    FLinearColor Start,
    FLinearColor End
)

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Construct the widget

Protected function

void

 

CycleMode()

Cycles the color picker's mode.

Protected function

void

 

DiscardColor()

Calls the user defined delegate for when the color changes are discarded

Protected function

void

 

GenerateDefaultColorPickerContent

(
    bool bAdvancedSectionExpanded
)

Protected function

void

 

GenerateInlineColorPickerContent()

Protected function Const

FLinearColor

 

GetCurrentColor()

Public function

TSharedPtr< ...

 

GetOptionalOwningDetailsView()

Gets the (optionally set) owning details view of the current color picker

Protected function

void

 

HideSmallTrash()

Protected function Const

TSharedRef< ...

 

MakeColorPreviewBox()

Creates the color preview box widget.

Protected function Const

TSharedRef< ...

 

MakeColorSlider

(
    EColorPickerChannels Channel
)

Creates a color slider widget for the specified channel.

Protected function Const

TSharedRef< ...

 

MakeColorSpinBox

(
    EColorPickerChannels Channel
)

Creates a color spin box widget for the specified channel.

Protected function

void

 

RestoreColors()

Restore all the modified colors to their original state

Protected function

void

 

SetColors

(
    const FLinearColor& InColor
)

Set all the colors to this new color

Protected function

bool

 

SetNewTargetColorHSV

(
    const FLinearColor& NewValue,
    bool bForceUpdate
)

Protected function

bool

 

SetNewTargetColorRGB

(
    const FLinearColor& NewValue,
    bool bForceUpdate
)

Sets new color in ether RGB or HSV

Protected function

void

 

ShowSmallTrash()

Protected function

void

 

UpdateColorPick()

Protected function

void

 

UpdateColorPickMouseUp()

Classes

Name

Description

Public struct

FArguments

Typedefs

Name

Description

FOnColorPickerCreationOverride

Delegate to override color picker creation behavior

FOnColorPickerDestructionOverride

Delegate to override color picker destruction behavior

Constants

Name

Description

ColorThemesViewer

A static pointer to the global color themes viewer

DEFAULT_WINDOW_SIZE

A default window size for the color picker which looks nice

MAX_ALLOWED_UPDATE_TIME

The max time allowed for updating before we shut off auto-updating

OnColorPickerDestroyOverride

OnColorPickerNonModalCreateOverride

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