UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SComplexGradient.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"
9
10class FPaintArgs;
12
17 : public SCompoundWidget
18{
19public:
20
28
31
32
34
35
36 SLATE_ARGUMENT(EOrientation, Orientation)
37
38
39 SLATE_ATTRIBUTE(TOptional<FVector2D>, DesiredSizeOverride)
40
42
45
51 SLATE_API void Construct( const FArguments& InArgs );
52
54
55 // SCompoundWidget overrides
56
57 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;
58 SLATE_API virtual FVector2D ComputeDesiredSize(float LayoutScaleMultiplier) const override;
60
63
66
68 bool bHasAlphaBackground;
69
71 EOrientation Orientation;
72};
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_END_ARGS()
Definition DeclarativeSyntaxSupport.h:116
#define SLATE_ARGUMENT(ArgType, ArgName)
Definition DeclarativeSyntaxSupport.h:208
EInvalidateWidgetReason
Definition InvalidateWidgetReason.h:14
EOrientation
Definition SlateEnums.h:261
Definition PaintArgs.h:23
Definition SlateRect.h:26
Definition DrawElements.h:220
Definition WidgetStyle.h:15
Definition SComplexGradient.h:18
SLATE_BEGIN_ARGS(SComplexGradient)
Definition SComplexGradient.h:21
SLATE_API void Construct(const FArguments &InArgs)
Definition SComplexGradient.cpp:22
virtual SLATE_API FVector2D ComputeDesiredSize(float LayoutScaleMultiplier) const override
Definition SComplexGradient.cpp:76
virtual SLATE_API int32 OnPaint(const FPaintArgs &Args, const FGeometry &AllottedGeometry, const FSlateRect &MyCullingRect, FSlateWindowElementList &OutDrawElements, int32 LayerId, const FWidgetStyle &InWidgetStyle, bool bParentEnabled) const override
Definition SComplexGradient.cpp:34
Definition SCompoundWidget.h:22
Definition Array.h:670
@ false
Definition radaudio_common.h:23
static SLATECORE_API const EVisibility SelfHitTestInvisible
Definition Visibility.h:26
Definition Geometry.h:40
Definition Color.h:48
Definition SWidget.h:189
Definition Optional.h:131