UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SColorGradingComponentViewer.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"
11
12#define UE_API ADVANCEDWIDGETS_API
13
14namespace UE::ColorGrading
15{
16
17class SColorGradingComponentSpinBox;
18
25 : public SCompoundWidget
26{
27public:
28
31
34
36 : _Value(0.f)
37 , _MinValue(0.f)
38 , _MaxValue(2.f)
39 , _MinFractionalDigits(DefaultMinFractionalDigits)
40 , _MaxFractionalDigits(DefaultMaxFractionalDigits)
41 , _Delta(0.f)
42 , _ShiftMultiplier(10.f)
43 , _CtrlMultiplier(0.1f)
46 , _SliderExponent(1.f)
51 {}
52
58 SLATE_ATTRIBUTE(EColorGradingModes, ColorGradingMode)
64 SLATE_ATTRIBUTE(TOptional<float>, MinSliderValue)
66 SLATE_ATTRIBUTE(TOptional<float>, MaxSliderValue)
68 SLATE_ATTRIBUTE(TOptional<int32>, MinFractionalDigits)
70 SLATE_ATTRIBUTE(TOptional<int32>, MaxFractionalDigits)
74 SLATE_ATTRIBUTE(float, ShiftMultiplier)
76 SLATE_ATTRIBUTE(float, CtrlMultiplier)
78 SLATE_ATTRIBUTE(int32, LinearDeltaSensitivity)
80 SLATE_ATTRIBUTE(bool, SupportDynamicSliderMaxValue)
82 SLATE_ATTRIBUTE(bool, SupportDynamicSliderMinValue)
84 SLATE_EVENT(FOnDynamicSliderMinMaxValueChanged, OnDynamicSliderMaxValueChanged)
86 SLATE_EVENT(FOnDynamicSliderMinMaxValueChanged, OnDynamicSliderMinValueChanged)
88 SLATE_ATTRIBUTE(float, SliderExponent)
90 SLATE_ATTRIBUTE(float, SliderExponentNeutralValue)
94 SLATE_EVENT(FOnValueChanged, OnValueChanged)
96 SLATE_EVENT(FSimpleDelegate, OnBeginSliderMovement)
98 SLATE_EVENT(FOnValueChanged, OnEndSliderMovement)
100 SLATE_EVENT(FOnGetCurrentVector4Value, OnQueryCurrentColor)
107
109
111
113
119 UE_API void Construct(const FArguments& InArgs);
120
122 UE_API float GetMaxSliderValue() const;
123
125 UE_API float GetMinSliderValue() const;
126
127private:
128
130 UE_API float GetValue() const;
131
133 UE_API FText GetComponentLabelText() const;
134
136 UE_API FText GetComponentToolTipText() const;
137
139 static constexpr int32 DefaultMinFractionalDigits = 1;
140
142 static constexpr int32 DefaultMaxFractionalDigits = 3;
143
144 TAttribute<TOptional<float>> MinValue;
145 TAttribute<TOptional<float>> MaxValue;
146 TAttribute<TOptional<float>> MinSliderValue;
147 TAttribute<TOptional<float>> MaxSliderValue;
148 TAttribute<TOptional<float>> OptionalValue;
149 TSharedPtr<SNumericEntryBox<float>> NumericEntryBox;
152};
153
154} //namespace
155
156#undef UE_API
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_EVENT(DelegateName, EventName)
Definition DeclarativeSyntaxSupport.h:458
#define SLATE_END_ARGS()
Definition DeclarativeSyntaxSupport.h:116
#define SLATE_ARGUMENT(ArgType, ArgName)
Definition DeclarativeSyntaxSupport.h:208
return true
Definition ExternalRpcRegistry.cpp:601
#define UE_API
Definition SColorGradingComponentViewer.h:12
Definition Text.h:385
Definition SCompoundWidget.h:22
Definition SNumericEntryBox.h:37
Definition Attribute.h:17
Definition SharedPointer.h:692
Definition SharedPointer.h:1295
Definition SColorGradingComponentSpinBox.h:28
Definition SColorGradingComponentViewer.h:26
DECLARE_DELEGATE_OneParam(FOnValueChanged, float)
DECLARE_DELEGATE_FourParams(FOnDynamicSliderMinMaxValueChanged, float, TWeakPtr< SWidget >, bool, bool)
UE_API float GetMinSliderValue() const
Definition SColorGradingComponentViewer.cpp:164
UE_API float GetMaxSliderValue() const
Definition SColorGradingComponentViewer.cpp:154
SLATE_BEGIN_ARGS(SColorGradingComponentViewer)
Definition SColorGradingComponentViewer.h:35
UE_API void Construct(const FArguments &InArgs)
Definition SColorGradingComponentViewer.cpp:19
Definition ColorGradingUtil.cpp:7
EColorGradingComponent
Definition ColorGradingCommon.h:16
EColorGradingModes
Definition ColorGradingCommon.h:45
@ false
Definition radaudio_common.h:23
Definition NumericTypeInterface.h:21
Definition Optional.h:131