SExpandableArea

Represents an expandable area of content

Windows
MacOS
Linux

Inheritance Hierarchy

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

Name Description

Protected variable

bool

 

bAreaCollapsed

True if the section is visible

Protected variable

const FSlateBru...

 

CollapsedImage

Image to use when the area is collapsed

Protected variable

const FSlateBru...

 

ExpandedImage

Image to use when the area is expanded

Protected variable

float

 

MaxHeight

The maximum height of this area

Protected variable

float

 

MinWidth

The minimum width of this area

Protected variable

FOnBooleanValue...

 

OnAreaExpansionChanged

Delegate that fires when the area becomes expanded or collapsed the user

Protected variable

FCurveSequence

 

RolloutCurve

Curved used to simulate a rollout of the section

Protected variable

TSharedPtr< SBo...

 

TitleBorder

Border widget for the header area

Functions

Name Description

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Constructs a new widget.

Protected function Virtual

TSharedRef< ...

 

ConstructHeaderWidget

(
    const FArguments& InArgs,
    TSharedRef< SWidget > HeaderContent
)

Constructs the header area widget

Protected function Virtual Const

FVector2D

 

GetSectionScale()

Public function Virtual Const

bool

 

IsExpanded()

Public function Virtual Const

bool

 

IsTitleHovered()

Returns true if area title is hovered, false otherwise.

Protected function Virtual Const

const FSlate...

 

OnGetCollapseImage()

Protected function Virtual Const

EVisibility

 

OnGetContentVisibility()

Protected function

FReply

 

OnHeaderClicked()

Protected function Virtual

void

 

OnToggleContentVisibility()

Toggles selection visibility when the panel is clicked.

Public function Virtual

void

 

SetExpanded

(
    bool bExpanded
)

Instantly sets the expanded state of the area

Public function Virtual

void

 

SetExpanded_Animated

(
    bool bExpanded
)

Overridden from SWidget

Name Description

Protected function Virtual Const

FVector2D

 

ComputeDesiredSize

(
    float
)

Computes the desired size of this area. Optionally clamping to Max height

Classes

Name

Description

Public struct

FArguments

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss