UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SColorGradingWheel.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Misc/Attribute.h"
7#include "Input/Reply.h"
11
15class UE_DEPRECATED(5.5, "Color grading widgets and associated types have moved to the AdvancedWidgets module.") SColorGradingWheel
16 : public SLeafWidget
17{
19
20public:
21
24
25 SLATE_BEGIN_ARGS(SColorGradingWheel)
32 { }
33
35 SLATE_ATTRIBUTE(FLinearColor, SelectedColor)
36
38
40
41
43
44
46
47
49
51
52public:
53 SLATE_API SColorGradingWheel();
54 SLATE_API virtual ~SColorGradingWheel();
55
61 SLATE_API void Construct(const FArguments& InArgs);
62
63public:
64
65 // SWidget overrides
66
67 SLATE_API virtual FVector2D ComputeDesiredSize(float) const override;
68 SLATE_API virtual FReply OnMouseButtonDoubleClick(const FGeometry& InMyGeometry, const FPointerEvent& InMouseEvent) override;
72 SLATE_API virtual int32 OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle, bool bParentEnabled) const override;
73
75
81 SLATE_API UE::Slate::FDeprecateVector2DResult CalcRelativePositionFromCenter() const;
82
88 SLATE_API bool ProcessMouseAction(const FGeometry& MyGeometry, const FPointerEvent& MouseEvent, bool bProcessWhenOutsideColorWheel);
89
91 SLATE_API void SetSelectedColorAttribute(TAttribute<FLinearColor> InSelectedColor);
92
94 SLATE_API void SetDesiredWheelSizeAttribute(TAttribute<int32> InDesiredWheelSize);
95
97 SLATE_API void SetExponentDisplacementAttribute(TAttribute<float> InExponentDisplacement);
98
100 TSlateAttributeRef<FLinearColor> GetSelectedColorAttribute() const { return TSlateAttributeRef<FLinearColor>(SharedThis(this), SelectedColorAttribute); }
101
103 TSlateAttributeRef<int32> GetDesiredWheelSizeAttribute() const { return TSlateAttributeRef<int32>(SharedThis(this), DesiredWheelSizeAttribute); }
104
106 TSlateAttributeRef<float> GetExponentDisplacementAttribute() const { return TSlateAttributeRef<float>(SharedThis(this), ExponentDisplacementAttribute); }
107
109 const FSlateBrush* Image;
110
112 const FSlateBrush* SelectorImage;
113
115 FOnColorGradingWheelMouseCapture OnMouseCaptureBegin;
116
118 FOnColorGradingWheelMouseCapture OnMouseCaptureEnd;
119
122
123private:
125 TSlateAttribute<FLinearColor> SelectedColorAttribute;
126
127 TSlateAttribute<int32> DesiredWheelSizeAttribute;
128 TSlateAttribute<float> ExponentDisplacementAttribute;
129
131 union
132 {
133 struct
134 {
135 uint8 bIsAttributeDesiredWheelSizeSet : 1;
136 uint8 bIsAttributeExponentDisplacementSet : 1;
137 };
138 uint8 Union_IsAttributeSet;
139 };
140};
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define SLATE_ATTRIBUTE(AttrType, AttrName)
Definition DeclarativeSyntaxSupport.h:192
#define SLATE_BEGIN_ARGS(InWidgetType)
Definition DeclarativeSyntaxSupport.h:63
#define SLATE_EVENT(DelegateName, EventName)
Definition DeclarativeSyntaxSupport.h:458
#define SLATE_END_ARGS()
Definition DeclarativeSyntaxSupport.h:116
#define DECLARE_DELEGATE_OneParam(DelegateName, Param1Type)
Definition DelegateCombinations.h:48
void Construct(const FArguments &InArgs)
virtual FReply OnMouseButtonDown(const FGeometry &MyGeometry, const FPointerEvent &MouseEvent)
#define SLATE_DECLARE_WIDGET_API(WidgetType, ParentType, ModuleApiDefine)
Definition SlateControlledConstruction.h:22
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition PaintArgs.h:23
Definition Reply.h:24
Definition SlateRect.h:26
Definition DrawElements.h:220
Definition WidgetStyle.h:15
Definition SLeafWidget.h:29
Definition Attribute.h:17
static UE_FORCEINLINE_HINT TSharedRef< OtherType, Mode > SharedThis(OtherType *ThisPtr)
Definition SharedPointer.h:1780
Definition SScissorRectBox.cpp:10
void OnValueChanged(FPropertyPath &Path, INotifyHook *NotifyHook, TPred Pred)
Definition SNumericPropertyValue.cpp:126
Definition AdvancedWidgetsModule.cpp:13
Definition Geometry.h:40
Definition Color.h:48
Definition Events.h:695
Definition SlateBrush.h:239