FSlateRect::FromPointAndExtent

Creates a rect from a top left point and extent.

Choose your operating system:

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.