FSlateRotatedRect

Stores a rectangle that has been transformed by an arbitrary render transform.

Windows
MacOS
Linux

References

Module

SlateCore

Header

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

Include

#include "Layout/SlateRotatedRect.h"

Syntax

struct FSlateRotatedRect

Remarks

Stores a rectangle that has been transformed by an arbitrary render transform. We provide a ctor that does the work common to slate drawing, but you could technically create this any way you want.

Variables

Name Description

Public variable

FVector2D

 

ExtentX

Transformed X extent (right-left).

Public variable

FVector2D

 

ExtentY

Transformed Y extent (bottom-top).

Public variable

FVector2D

 

TopLeft

Transformed Top-left corner.

Constructors

Name Description

Public function

FSlateRotatedRect()

Default ctor.

Public function

FSlateRotatedRect

(
    const FSlateRect& AlignedRect
)

Construct a rotated rect from a given aligned rect.

Public function

FSlateRotatedRect

(
    const FVector2D& InTopLeft,
    const FVector2D& InExtentX,
    const FVector2D& InExtentY
)

Per-element constructor.

Functions

Name Description

Public function Const

bool

 

IsUnderLocation

(
    const FVector2D& Location
)

Point-in-rect test.

Public function Static

FSlateRotate...

 

MakeRotatedRect

(
    const FSlateRect& ClipRectInLayout...,
    const FTransform2D& LayoutToRender...
)

Public function Static

FSlateRotate...

 

MakeRotatedRect

(
    const FSlateRect& ClipRectInLayout...,
    const FSlateLayoutTransform& Inver...,
    const FSlateRenderTransform& Rende...
)

Public function Static

FSlateRotate...

 

MakeSnappedRotatedRect

(
    const FSlateRect& ClipRectInLayout...,
    const FTransform2D& LayoutToRender...
)

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.

Public function Static

FSlateRotate...

 

MakeSnappedRotatedRect

(
    const FSlateRect& ClipRectInLayout...,
    const FSlateLayoutTransform& Inver...,
    const FSlateRenderTransform& Rende...
)

Public function Const

FSlateRect

 

ToBoundingRect()

Convert to a bounding, aligned rect.

Operators

Name Description

Public function Const

bool

 

operator==

(
    const FSlateRotatedRect& Other
)

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