FGeometry::MakeChild

Create a child geometry relative to this one with a given local space size, layout transform, and render transform.

Windows
MacOS
Linux

References

Module

SlateCore

Header

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

Include

#include "Layout/Geometry.h"

Syntax

FGeometry MakeChild
(
    const FVector2D & InLocalSize,
    const FSlateLayoutTransform & LayoutTransform,
    const FSlateRenderTransform & RenderTransform,
    const FVector2D & RenderTransformPivot
) const

Remarks

Create a child geometry relative to this one with a given local space size, layout transform, and 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.

Parameters

Parameter

Description

LocalSize

The size of the child geometry in local space.

LayoutTransform

Layout transform of the new child relative to this Geometry. Goes from the child's layout space to the this widget's layout space.

RenderTransform

Render-only transform of the new child that is applied before the layout transform for rendering purposes only.

RenderTransformPivot

Pivot in normalized local space of the Render transform.

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