UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SLayeredImage.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"
7
8struct FSlateIcon;
9
10template <>
12{
13 static constexpr bool SupportsInvalidation() { return true; }
14};
15
17class SLayeredImage : public SImage
18{
19public:
21
23 SLATECORE_API void Construct(const FArguments& InArgs, const TArray<ImageLayer>& InLayers);
24
26 SLATECORE_API void Construct(const FArguments& InArgs, TArray<ImageLayer>&& InLayers);
27
30
32 SLATECORE_API void Construct(const FArguments& InArgs, int32 NumLayers = 0);
33
35 SLATECORE_API void Construct(const FArguments& InArgs, const FSlateIcon& InIcon);
36
37 //~ Begin SWidget Interface
38 SLATECORE_API virtual int32 OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle, bool bParentEnabled) const override;
39 //~ End SWidget Interface
40
43
46
49
52
55
58
61
64
65private:
69
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
Definition PaintArgs.h:23
Definition SlateRect.h:26
Definition DrawElements.h:220
Definition WidgetStyle.h:15
Definition SImage.h:29
Definition SLayeredImage.h:18
SLATECORE_API void AddLayer(TAttribute< const FSlateBrush * > Brush)
Definition SLayeredImage.cpp:82
SLATECORE_API bool IsValidIndex(int32 Index) const
Definition SLayeredImage.cpp:127
SLATECORE_API void SetFromSlateIcon(const FSlateIcon &InIcon)
Definition SLayeredImage.cpp:100
virtual SLATECORE_API int32 OnPaint(const FPaintArgs &Args, const FGeometry &AllottedGeometry, const FSlateRect &MyCullingRect, FSlateWindowElementList &OutDrawElements, int32 LayerId, const FWidgetStyle &InWidgetStyle, bool bParentEnabled) const override
Definition SLayeredImage.cpp:60
SLATECORE_API void SetLayerColor(int32 Index, TAttribute< FSlateColor > Color)
Definition SLayeredImage.cpp:152
SLATECORE_API void Construct(const FArguments &InArgs, const TArray< ImageLayer > &InLayers)
Definition SLayeredImage.cpp:6
SLATECORE_API int32 GetNumLayers() const
Definition SLayeredImage.cpp:122
SLATECORE_API void SetLayerBrush(int32 Index, TAttribute< const FSlateBrush * > Brush)
Definition SLayeredImage.cpp:133
TTuple< TAttribute< const FSlateBrush * >, TAttribute< FSlateColor > > ImageLayer
Definition SLayeredImage.h:20
SLATECORE_API void RemoveAllLayers()
Definition SLayeredImage.cpp:115
SLATECORE_API void Construct(const FArguments &InArgs, TArray< ImageLayer > &&InLayers)
Definition Array.h:670
Definition Attribute.h:17
U16 Index
Definition radfft.cpp:71
Definition Geometry.h:40
Definition SlateIcon.h:13
Definition SWidget.h:225
Definition Tuple.h:652
static constexpr bool SupportsInvalidation()
Definition SLayeredImage.h:13
Definition SWidget.h:69