UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FSlateRotatedRect Struct Reference

#include <SlateRotatedRect.h>

Public Member Functions

 FSlateRotatedRect ()
 
 FSlateRotatedRect (const FSlateRect &AlignedRect)
 
 FSlateRotatedRect (const UE::Slate::FDeprecateVector2DParameter &InTopLeft, const UE::Slate::FDeprecateVector2DParameter &InExtentX, const UE::Slate::FDeprecateVector2DParameter &InExtentY)
 
bool operator== (const FSlateRotatedRect &Other) const
 
SLATECORE_API FSlateRect ToBoundingRect () const
 
SLATECORE_API bool IsUnderLocation (const UE::Slate::FDeprecateVector2DParameter Location) const
 

Static Public Member Functions

static FSlateRotatedRect MakeRotatedRect (const FSlateRect &ClipRectInLayoutWindowSpace, const FSlateLayoutTransform &InverseLayoutTransform, const FSlateRenderTransform &RenderTransform)
 
static SLATECORE_API FSlateRotatedRect MakeRotatedRect (const FSlateRect &ClipRectInLayoutWindowSpace, const FTransform2f &LayoutToRenderTransform)
 
static FSlateRotatedRect MakeSnappedRotatedRect (const FSlateRect &ClipRectInLayoutWindowSpace, const FSlateLayoutTransform &InverseLayoutTransform, const FSlateRenderTransform &RenderTransform)
 
static SLATECORE_API FSlateRotatedRect MakeSnappedRotatedRect (const FSlateRect &ClipRectInLayoutWindowSpace, const FTransform2f &LayoutToRenderTransform)
 

Public Attributes

FVector2f TopLeft
 
FVector2f ExtentX
 
FVector2f ExtentY
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FSlateRotatedRect() [1/3]

FSlateRotatedRect::FSlateRotatedRect ( )
inline

Default ctor.

◆ FSlateRotatedRect() [2/3]

FSlateRotatedRect::FSlateRotatedRect ( const FSlateRect AlignedRect)
inlineexplicit

Construct a rotated rect from a given aligned rect.

◆ FSlateRotatedRect() [3/3]

FSlateRotatedRect::FSlateRotatedRect ( const UE::Slate::FDeprecateVector2DParameter InTopLeft,
const UE::Slate::FDeprecateVector2DParameter InExtentX,
const UE::Slate::FDeprecateVector2DParameter InExtentY 
)
inline

Per-element constructor.

Member Function Documentation

◆ IsUnderLocation()

bool FSlateRotatedRect::IsUnderLocation ( const UE::Slate::FDeprecateVector2DParameter  Location) const

Point-in-rect test.

◆ MakeRotatedRect() [1/2]

static FSlateRotatedRect FSlateRotatedRect::MakeRotatedRect ( const FSlateRect ClipRectInLayoutWindowSpace,
const FSlateLayoutTransform InverseLayoutTransform,
const FSlateRenderTransform RenderTransform 
)
inlinestatic

◆ MakeRotatedRect() [2/2]

FSlateRotatedRect FSlateRotatedRect::MakeRotatedRect ( const FSlateRect ClipRectInLayoutWindowSpace,
const FTransform2f LayoutToRenderTransform 
)
static

◆ MakeSnappedRotatedRect() [1/2]

static FSlateRotatedRect FSlateRotatedRect::MakeSnappedRotatedRect ( const FSlateRect ClipRectInLayoutWindowSpace,
const FSlateLayoutTransform InverseLayoutTransform,
const FSlateRenderTransform RenderTransform 
)
inlinestatic

◆ MakeSnappedRotatedRect() [2/2]

FSlateRotatedRect FSlateRotatedRect::MakeSnappedRotatedRect ( const FSlateRect ClipRectInLayoutWindowSpace,
const FTransform2f LayoutToRenderTransform 
)
static

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.

◆ operator==()

bool FSlateRotatedRect::operator== ( const FSlateRotatedRect Other) const
inline

◆ ToBoundingRect()

FSlateRect FSlateRotatedRect::ToBoundingRect ( ) const

Convert to a bounding, aligned rect.

Member Data Documentation

◆ ExtentX

FVector2f FSlateRotatedRect::ExtentX

transformed X extent (right-left).

◆ ExtentY

FVector2f FSlateRotatedRect::ExtentY

transformed Y extent (bottom-top).

◆ TopLeft

FVector2f FSlateRotatedRect::TopLeft

transformed Top-left corner.


The documentation for this struct was generated from the following files: