UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ExpandableArea.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 "SlateFwd.h"
8#include "Layout/Margin.h"
10#include "Styling/SlateBrush.h"
11#include "Styling/SlateTypes.h"
12#include "Widgets/SWidget.h"
13#include "Components/Widget.h"
15#include "ExpandableArea.generated.h"
16
17class UExpandableArea;
18
20
24UCLASS(MinimalAPI)
26{
28
29public:
30
31 UE_DEPRECATED(5.2, "Direct access to Style is deprecated. Please use SetStyle or GetStyle.")
32 UPROPERTY(EditAnywhere, Category = "Style")
34
35 UE_DEPRECATED(5.2, "Direct access to BorderBrush is deprecated. Please use the getter or setter.")
36 UPROPERTY( EditAnywhere, BlueprintReadWrite, Getter, Setter, Category = "Style" )
38
39 UE_DEPRECATED(5.2, "Direct access to BorderColor is deprecated. Please use the getter or setter.")
40 UPROPERTY( EditAnywhere, BlueprintReadWrite, Getter, Setter, Category = "Style")
42
44 UE_DEPRECATED(5.2, "Direct access to bIsExpanded is deprecated. Please use the getter or setter.")
45 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter = "GetIsExpanded", Setter = "SetIsExpanded", BlueprintGetter = "GetIsExpanded", BlueprintSetter = "SetIsExpanded", FieldNotify, Category = "Expansion")
47
48 UE_DEPRECATED(5.2, "Direct access to MaxHeight is deprecated. Please use the getter or setter.")
50 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter, Setter, Category="Expansion")
51 float MaxHeight;
52
53 UE_DEPRECATED(5.2, "Direct access to HeaderPadding is deprecated. Please use the getter or setter.")
54 UPROPERTY( EditAnywhere, BlueprintReadWrite, Getter, Setter, Category = "Expansion" )
56
58 UE_DEPRECATED(5.2, "Direct access to AreaPadding is deprecated. Please use the getter or setter.")
59 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter, Setter, Category="Expansion")
61
63 UPROPERTY(BlueprintAssignable, Category="ExpandableArea|Event")
65
66public:
67
68 UFUNCTION(BlueprintCallable, Category="Expansion")
69 UMG_API bool GetIsExpanded() const;
70
71 UFUNCTION(BlueprintCallable, Category="Expansion")
72 UMG_API void SetIsExpanded(bool IsExpanded);
73
74 UFUNCTION(BlueprintCallable, Category = "Expansion")
75 UMG_API void SetIsExpanded_Animated(bool IsExpanded);
76
78
80
81 UMG_API const FSlateBrush& GetBorderBrush() const;
82
84
85 UMG_API const FSlateColor& GetBorderColor() const;
86
88
89 UMG_API float GetMaxHeight() const;
90
92
94
96
99
100 // Begin INamedSlotInterface
101 UMG_API virtual void GetSlotNames(TArray<FName>& SlotNames) const override;
104 // End INamedSlotInterface
105
106public:
107
108 // UWidget interface
110 // End of UWidget interface
111
112 // UVisual interface
114 // End of UVisual interface
115
116#if WITH_EDITOR
117 UMG_API virtual const FText GetPaletteCategory() override;
120#endif
121
122protected:
123 // UWidget interface
124 UMG_API virtual TSharedRef<SWidget> RebuildWidget() override;
125 // End of UWidget interface
126
127 UMG_API void SlateExpansionChanged(bool NewState);
128
129protected:
130 UPROPERTY()
132
133 UPROPERTY()
135
137};
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(DelegateName, Param1Type, Param1Name, Param2Type, Param2Name)
Definition DelegateCombinations.h:62
const uint32 MaxHeight
Definition GameplayMediaEncoder.cpp:50
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition NameTypes.h:617
Definition Text.h:385
Definition NamedSlotInterface.h:23
Definition SExpandableArea.h:27
Definition Array.h:670
Definition SharedPointer.h:692
Definition SharedPointer.h:153
Definition ExpandableArea.h:26
FMargin HeaderPadding
Definition ExpandableArea.h:55
virtual UMG_API UWidget * GetContentForSlot(FName SlotName) const override
Definition ExpandableArea.cpp:91
UMG_API void SetBorderBrush(const FSlateBrush &InBorderBrush)
Definition ExpandableArea.cpp:148
virtual UMG_API void GetSlotNames(TArray< FName > &SlotNames) const override
Definition ExpandableArea.cpp:85
UMG_API bool GetIsExpanded() const
Definition ExpandableArea.cpp:46
UMG_API void SlateExpansionChanged(bool NewState)
Definition ExpandableArea.cpp:264
UMG_API float GetMaxHeight() const
Definition ExpandableArea.cpp:175
UMG_API void SetMaxHeight(float InMaxHeight)
Definition ExpandableArea.cpp:180
UMG_API FMargin GetHeaderPadding() const
Definition ExpandableArea.cpp:189
TObjectPtr< UWidget > HeaderContent
Definition ExpandableArea.h:131
TSharedPtr< SExpandableArea > MyExpandableArea
Definition ExpandableArea.h:136
FMargin AreaPadding
Definition ExpandableArea.h:60
UMG_API const FSlateBrush & GetBorderBrush() const
Definition ExpandableArea.cpp:143
UMG_API void SetIsExpanded_Animated(bool IsExpanded)
Definition ExpandableArea.cpp:64
virtual UMG_API TSharedRef< SWidget > RebuildWidget() override
Definition ExpandableArea.cpp:217
UMG_API void SetIsExpanded(bool IsExpanded)
Definition ExpandableArea.cpp:51
FExpandableAreaStyle Style
Definition ExpandableArea.h:33
virtual UMG_API void SynchronizeProperties() override
Definition ExpandableArea.cpp:242
UMG_API const FSlateColor & GetBorderColor() const
Definition ExpandableArea.cpp:161
UMG_API void SetHeaderPadding(FMargin InHeaderPadding)
Definition ExpandableArea.cpp:194
virtual UMG_API void SetContentForSlot(FName SlotName, UWidget *Content) override
Definition ExpandableArea.cpp:105
UMG_API void SetBorderColor(const FSlateColor &InBorderColor)
Definition ExpandableArea.cpp:166
bool bIsExpanded
Definition ExpandableArea.h:46
FOnExpandableAreaExpansionChanged OnExpansionChanged
Definition ExpandableArea.h:64
TObjectPtr< UWidget > BodyContent
Definition ExpandableArea.h:134
UMG_API const FExpandableAreaStyle & GetStyle() const
Definition ExpandableArea.cpp:129
FSlateColor BorderColor
Definition ExpandableArea.h:41
UMG_API FMargin GetAreaPadding() const
Definition ExpandableArea.cpp:203
FSlateBrush BorderBrush
Definition ExpandableArea.h:37
UMG_API void SetAreaPadding(FMargin InAreaPadding)
Definition ExpandableArea.cpp:208
UMG_API void SetStyle(const FExpandableAreaStyle &InStyle)
Definition ExpandableArea.cpp:134
virtual UMG_API void ReleaseSlateResources(bool bReleaseChildren) override
Definition ExpandableArea.cpp:77
Definition Widget.h:217
Definition SlateTypes.h:1218
Definition Margin.h:17
Definition SlateBrush.h:239
Definition SlateColor.h:42
Definition ObjectPtr.h:488