Navigation
Unreal Engine C++ API Reference > Runtime > AppFramework > Widgets > Colors
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
Type | Name | Description | |
---|---|---|---|
![]() |
Destructor. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
bool | ApplyNewTargetColor
(
bool bForceUpdate |
|
![]() |
void | BackupColors () |
Backup all the colors that are being modified |
![]() |
void | BeginAnimation
(
FLinearColor Start, |
|
![]() |
void | Construct
(
const FArguments& InArgs |
Construct the widget |
![]() |
void | CycleMode () |
Cycles the color picker's mode. |
![]() |
void | DiscardColor () |
Calls the user defined delegate for when the color changes are discarded |
![]() |
void | GenerateDefaultColorPickerContent
(
bool bAdvancedSectionExpanded |
|
![]() |
void | ||
![]() ![]() |
FLinearColor | ||
![]() |
TSharedPtr< SWidget > | Gets the (optionally set) owning details view of the current color picker | |
![]() |
void | ||
![]() ![]() |
TSharedRef< SWidget > | Creates the color preview box widget. | |
![]() ![]() |
TSharedRef< SWidget > | MakeColorSlider
(
EColorPickerChannels Channel |
Creates a color slider widget for the specified channel. |
![]() ![]() |
TSharedRef< SWidget > | MakeColorSpinBox
(
EColorPickerChannels Channel |
Creates a color spin box widget for the specified channel. |
![]() |
bool | SetNewTargetColorHSV
(
const FLinearColor& NewValue, |
|
![]() |
bool | SetNewTargetColorRGB
(
const FLinearColor& NewValue, |
Sets new color in ether RGB or HSV |
![]() |
void | ||
![]() |
void | ||
![]() |
void |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
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 |