FGeometry::MakeChild

[FGeometry](API\Runtime\SlateCore\Layout\FGeometry) Arranged Widget Inlined Functions.

Windows
MacOS
Linux

References

Module

SlateCore

Header

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

Include

#include "Layout/Geometry.h"

Source

/Engine/Source/Runtime/SlateCore/Public/Widgets/SWidget.h

Syntax

FArrangedWidget MakeChild
(
    const TSharedRef< SWidget > & ChildWidget,
    const FVector2D & InLocalSize,
    const FSlateLayoutTransform & LayoutTransform
) const

Remarks

Create a child geometry+widget relative to this one with a given local space size and layout transform. The Geometry inherits the child widget's render transform. For example, a widget with a 5x5 margin will create a geometry for it's child contents having a LayoutTransform of Translate(5,5) and a LocalSize 10 units smaller than it's own.

Returns

The new child geometry+widget.

Parameters

Parameter

Description

ChildWidget

The child widget this geometry is being created for.

LocalSize

The size of the child geometry in local space.

LayoutTransform

Layout transform of the new child relative to this Geometry.

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