Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Layout > API/Runtime/SlateCore/Layout/AlignChild
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Layout/LayoutUtils.h |
| Include | #include "Layout/LayoutUtils.h" |
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. Offset and Size of widget
Parameters
| Name | 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. |