AlignChild

Helper method to BoxPanel::ArrangeChildren.

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Layout/LayoutUtils.h

Include

#include "Layout/LayoutUtils.h"

Syntax

template<EOrientation Orientation, typename SlotType>
static AlignmentArrangeResult AlignChild
(
    EFlowDirection InLayoutFlow,
    float AllottedSize,
    float ChildDesiredSize,
    const SlotType & ChildToArrange,
    const FMargin & SlotPadding,
    const float & ContentScale,
    bool bClampToParent
)

Remarks

Helper method to BoxPanel::ArrangeChildren.

Returns

Offset and Size of widget

Parameters

Parameter

Description

AllottedSize

The size available to arrange the widget along the given orientation

ChildToArrange

The widget and associated layout information

SlotPadding

The padding to when aligning the child

ContentScale

The scale to apply to the child before aligning it.

bClampToParent

If true the child's size is clamped to the allotted size before alignment occurs, if false, the child's desired size is used, even if larger than the allotted size.

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