SUniformWrapPanel

A panel that evenly divides up available space between all of its children.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Layout/SUniformWrapPanel.h

Include

#include "Widgets/Layout/SUniformWrapPanel.h"

Syntax

class SUniformWrapPanel : public SPanel

Remarks

A panel that evenly divides up available space between all of its children.

Constructors

Name Description

Public function

SUniformWrapPanel()

Functions

Name Description

Public function

FSlot &

 

AddSlot()

Public function

void

 

ClearChildren()

Removes all slots from the panel

Protected function Const

FVector2D

 

ComputeUniformCellSize()

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Public function

bool

 

GetEvenRowDistribution()

Public function

EHorizontalA...

 

GetHorizontalAlignment()

Public function

bool

 

RemoveSlot

(
    const TSharedRef< SWidget >& SlotW...
)

Removes a slot from this panel which contains the specified SWidget

Public function

void

 

SetEvenRowDistribution

(
    TAttribute< bool > InEvenRowDistrib...
)

See EvenRowDistribution attribute

Public function

void

 

SetHorizontalAlignment

(
    TAttribute< EHorizontalAlignment > ...
)

See HAlign attribute

Public function

void

 

SetMinDesiredSlotHeight

(
    TAttribute< float > InMinDesiredSlo...
)

See MinDesiredSlotHeight attribute

Public function

void

 

SetMinDesiredSlotWidth

(
    TAttribute< float > InMinDesiredSlo...
)

See MinDesiredSlotWidth attribute

Public function

void

 

SetSlotPadding

(
    TAttribute< FMargin > InSlotPadding
)

See SlotPadding attribute

Public function Static

FSlot &

 

Slot()

Used by declarative syntax to create a Slot.

Overridden from SWidget

Name Description

Protected function Virtual Const

FVector2D

 

ComputeDesiredSize

(
    float
)

A Panel's desired size in the space required to arrange of its children on the screen while respecting all of the children's desired sizes and any layout-related options specified by the user.

Public function Virtual

FChildren &#...

 

GetChildren()

All widgets must provide a way to access their children in a layout-agnostic way.

Public function Virtual Const

void

 

OnArrangeChildren

(
    const FGeometry& AllottedGeometry,
    FArrangedChildren& ArrangedChildre...
)

Panels arrange their children in a space described by the AllottedGeometry parameter.

Classes

Name

Description

Public struct

FArguments

Public struct

FSlot

Stores the per-child info for this panel type

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