Navigation
API > API/Runtime > API/Runtime/Slate
A button that can either be collapsed or expanded, containing different content in each state.
| Name | SExpandableButton |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Input/SExpandableButton.h |
| Include Path | #include "Widgets/Input/SExpandableButton.h" |
Syntax
class SExpandableButton : public SBorder
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SBorder → SExpandableButton
- FSlateControlledConstruction → SWidget → SCompoundWidget → SBorder → SExpandableButton
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
SExpandableButton() |
Widgets/Input/SExpandableButton.h |
Structs
| Name | Remarks |
|---|---|
| FArguments |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| PrivateParentType | SBorder | Widgets/Input/SExpandableButton.h | |
| PrivateThisType | SExpandableButton | Widgets/Input/SExpandableButton.h | |
| Super | SBorder | Widgets/Input/SExpandableButton.h | |
| ThisClass | SExpandableButton | Widgets/Input/SExpandableButton.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CloseExpansionButton | TSharedPtr< SWidget > | Widgets/Input/SExpandableButton.h | ||
| ExpandedChildContent | TSharedPtr< SWidget > | Widgets/Input/SExpandableButton.h | ||
| IsExpanded | TSlateAttribute< bool > | The attribute of the current expansion state | Widgets/Input/SExpandableButton.h | |
| ToggleButtonClosed | TSharedPtr< SWidget > | Widgets/Input/SExpandableButton.h | ||
| ToggleButtonExpanded | TSharedPtr< SWidget > | Widgets/Input/SExpandableButton.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
Construct this widget | Widgets/Input/SExpandableButton.h |
Overridden from FSlateControlledConstruction
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FSlateWidgetClassData & GetWidgetClass() |
Widgets/Input/SExpandableButton.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
EVisibility GetCollapsedVisibility() |
Callbacks to determine visibility of parts that should be shown when the button state is collapsed or expanded | Widgets/Input/SExpandableButton.h | |
EVisibility GetExpandedVisibility() |
Widgets/Input/SExpandableButton.h | ||
void UpdateVisibility() |
Widgets/Input/SExpandableButton.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static const FSlateWidgetClassData & GetPrivateWidgetClass() |
Widgets/Input/SExpandableButton.h | ||
static SLATE_API void PrivateRegisterAttributes
(
FSlateAttributeInitializer& |
Widgets/Input/SExpandableButton.h | ||
static const FSlateWidgetClassData & StaticWidgetClass() |
Widgets/Input/SExpandableButton.h |