FSlateRect::FromPointAndExtent

Creates a rect from a top left point and extent.

Windows
MacOS
Linux

References

Module

SlateCore

Header

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

Include

#include "Layout/SlateRect.h"

Syntax

static FSlateRect FromPointAndExtent
(
    const FVector2D & TopLeft,
    const FVector2D & Size
)

Remarks

Creates a rect from a top left point and extent. Provided as a factory function to not conflict with the TopLeft + BottomRight ctor.

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