UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ColorBinding.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"
10#include "ColorBinding.generated.h"
11
12UCLASS(MinimalAPI)
14{
16
17public:
18
20
21 UMG_API virtual bool IsSupportedSource(FProperty* Property) const override;
22 UMG_API virtual bool IsSupportedDestination(FProperty* Property) const override;
23
24 UMG_API virtual void Bind(FProperty* Property, FScriptDelegate* Delegate) override;
25
26 UFUNCTION()
27 UMG_API FSlateColor GetSlateValue() const;
28
29 UFUNCTION()
30 UMG_API FLinearColor GetLinearValue() const;
31
32private:
33 mutable TOptional<bool> bNeedsConversion;
34};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition UnrealType.h:174
Definition ScriptDelegates.h:66
Definition ColorBinding.h:14
Definition PropertyBinding.h:18
Definition Color.h:48
Definition SlateColor.h:42
Definition Optional.h:131