UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SExpandableButton.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"
7#include "Layout/Visibility.h"
11
16 : public SBorder
17{
19
20public:
21
25
28
29
31
32
34
35
37
38
39 SLATE_NAMED_SLOT( FArguments, ExpandedChildContent )
40
41
43
44
46
47
48 SLATE_ATTRIBUTE( bool, IsExpanded )
49
51
58 SLATE_API void Construct(const FArguments& InArgs);
59
61
65
67
69
71 TSlateAttribute<bool> IsExpanded;
72
73 TSharedPtr<SWidget> ExpandedChildContent;
74 TSharedPtr<SWidget> ToggleButtonClosed;
75 TSharedPtr<SWidget> ToggleButtonExpanded;
76 TSharedPtr<SWidget> CloseExpansionButton;
77};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define SLATE_NAMED_SLOT(DeclarationType, SlotName)
Definition DeclarativeSyntaxSupport.h:437
#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
return true
Definition ExternalRpcRegistry.cpp:601
#define SLATE_DECLARE_WIDGET_API(WidgetType, ParentType, ModuleApiDefine)
Definition SlateControlledConstruction.h:22
Definition Text.h:385
Definition SBorder.h:31
Definition SExpandableButton.h:17
SLATE_API EVisibility GetCollapsedVisibility() const
Definition SExpandableButton.cpp:26
SLATE_API void Construct(const FArguments &InArgs)
Definition SExpandableButton.cpp:36
SLATE_API void UpdateVisibility()
Definition SExpandableButton.cpp:115
SLATE_API EVisibility GetExpandedVisibility() const
Definition SExpandableButton.cpp:31
SLATE_BEGIN_ARGS(SExpandableButton)
Definition SExpandableButton.h:22
Definition SWidget.h:165
Definition SharedPointer.h:692
Definition Visibility.h:12