Module |
|
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
)
Helper method to BoxPanel::ArrangeChildren.
Offset and Size of widget
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. |