Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Layout
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SCompoundWidget
- SExpandableArea
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SExpandableArea.h |
| Include | #include "Widgets/Layout/SExpandableArea.h" |
Syntax
class SExpandableArea : public SCompoundWidget
Remarks
Represents an expandable area of content
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAllowAnimatedTransition | If true expanding and collapsing the area will animate, otherwise it will expand/collapse instantly | |
| bool | bAreaCollapsed | True if the section is visible | |
| TSharedPtr< SBorder > | BodyBorder | Border widget for the body area | |
| const FSlateBrush * | CollapsedImage | Image to use when the area is collapsed | |
| const FSlateBrush * | ExpandedImage | Image to use when the area is expanded | |
| TSharedPtr< SButton > | ExpandingButton | Button for expanding the are | |
| float | MaxHeight | The maximum height of this area | |
| float | MinWidth | The minimum width of this area | |
| FOnBooleanValueChanged | OnAreaExpansionChanged | Delegate that fires when the area becomes expanded or collapsed the user | |
| FCurveSequence | RolloutCurve | Curved used to simulate a rollout of the section | |
| TSharedPtr< SBorder > | TitleBorder | Border widget for the header area | |
| TSharedPtr< SBorder > | WidgetBorder | Border widget if the body style is different from header | |
| const FExpandableAreaStyle * | WidgetStyle | Style of the Expandable Area |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Construct
(
const FArguments& InArgs |
Constructs a new widget. | |
| TSharedRef< SWidget > | ConstructHeaderWidget
(
const FArguments& InArgs, |
Constructs the header area widget | |
| FVector2D | |||
| void | Invalidates the border brush | ||
| void | Invalidates the style | ||
| bool | IsExpanded () |
||
| bool | Returns true if area title is hovered, false otherwise. | ||
| const FSlateBrush * | |||
| EVisibility | |||
| FReply | |||
| void | Toggles selection visibility when the panel is clicked. | ||
| void | SetAreaPadding
(
FMargin InAreaPadding |
Sets the body padding | |
| void | SetBorderBackgroundColor
(
const FSlateColor& InBorderColor |
Sets the color of all borders | |
| void | SetBorderBrush
(
const FSlateBrush* InBorderBrush |
Sets the brush of all borders | |
| void | SetExpanded
(
bool bExpanded |
Instantly sets the expanded state of the area | |
| void | SetExpanded_Animated
(
bool bExpanded |
||
| void | SetHeaderPadding
(
FMargin InHeaderPadding |
Sets the header padding | |
| void | SetMaxHeight
(
float InMaxHeight |
Sets the max height of the area | |
| void | SetStyle
(
const FExpandableAreaStyle* InStyle |
Sets the style of the widget |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| FVector2D | ComputeDesiredSize
(
float |
Computes the desired size of this area. Optionally clamping to Max height |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |