FSlateRotatedRect::MakeSnappedRotatedRect

Used to construct a rotated rect from an aligned clip rect and a set of layout and render transforms from the geometry, snapped to pixel boundaries.

Windows
MacOS
Linux

References

Module

SlateCore

Header

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

Include

#include "Layout/SlateRotatedRect.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Layout/SlateRotatedRect.cpp

Syntax

static FSlateRotatedRect MakeSnappedRotatedRect
(
    const FSlateRect & ClipRectInLayoutWindowSpace,
    const FTransform2D & LayoutToRenderTransform
)

Remarks

Used to construct a rotated rect from an aligned clip rect and a set of layout and render transforms from the geometry, snapped to pixel boundaries. Returns a float or float16 version of the rect based on the typedef.

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