Navigation
API > API/Runtime > API/Runtime/Slate
Represents an expandable area of content
| Name | SExpandableArea |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SExpandableArea.h |
| Include Path | #include "Widgets/Layout/SExpandableArea.h" |
Syntax
class SExpandableArea : public SCompoundWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SExpandableArea
- FSlateControlledConstruction → SWidget → SCompoundWidget → SExpandableArea
Structs
| Name | Remarks |
|---|---|
| FArguments |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
Constructs a new widget. | Widgets/Layout/SExpandableArea.h | |
void InvalidateBorderBrush() |
Invalidates the border brush | Widgets/Layout/SExpandableArea.h | |
void InvalidateStyle() |
Invalidates the style | Widgets/Layout/SExpandableArea.h | |
virtual bool IsExpanded() |
Widgets/Layout/SExpandableArea.h | ||
virtual bool IsTitleHovered() |
Returns true if area title is hovered, false otherwise. | Widgets/Layout/SExpandableArea.h | |
void SetAreaPadding
(
FMargin InAreaPadding |
Sets the body padding | Widgets/Layout/SExpandableArea.h | |
void SetBorderBackgroundColor
(
const FSlateColor& InBorderColor |
Sets the color of all borders | Widgets/Layout/SExpandableArea.h | |
void SetBorderBrush
(
const FSlateBrush* InBorderBrush |
Sets the brush of all borders | Widgets/Layout/SExpandableArea.h | |
virtual void SetExpanded
(
bool bExpanded |
Instantly sets the expanded state of the area | Widgets/Layout/SExpandableArea.h | |
virtual void SetExpanded_Animated
(
bool bExpanded |
Widgets/Layout/SExpandableArea.h | ||
void SetHeaderPadding
(
FMargin InHeaderPadding |
Sets the header padding | Widgets/Layout/SExpandableArea.h | |
void SetMaxHeight
(
float InMaxHeight |
Sets the max height of the area | Widgets/Layout/SExpandableArea.h | |
void SetStyle
(
const FExpandableAreaStyle* InStyle |
Sets the style of the widget | Widgets/Layout/SExpandableArea.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSharedRef< SWidget > ConstructHeaderWidget
(
const FArguments& InArgs, |
Constructs the header area widget | Widgets/Layout/SExpandableArea.h | |
virtual FVector2D GetSectionScale() |
Widgets/Layout/SExpandableArea.h | ||
virtual const FSlateBrush * OnGetCollapseImage() |
Widgets/Layout/SExpandableArea.h | ||
virtual EVisibility OnGetContentVisibility() |
Widgets/Layout/SExpandableArea.h | ||
FReply OnHeaderClicked() |
Widgets/Layout/SExpandableArea.h | ||
virtual void OnToggleContentVisibility() |
Toggles selection visibility when the panel is clicked. | Widgets/Layout/SExpandableArea.h |
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FVector2D ComputeDesiredSize
(
float |
Computes the desired size of this area. Optionally clamping to Max height | Widgets/Layout/SExpandableArea.h |