Navigation
API > API/Runtime > API/Runtime/SlateCore
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.
| Name | FSlateRotatedRect |
| Type | struct |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Layout/SlateRotatedRect.h |
| Include Path | #include "Layout/SlateRotatedRect.h" |
Syntax
struct FSlateRotatedRect
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Default ctor. | Layout/SlateRotatedRect.h | ||
FSlateRotatedRect
(
const FSlateRect& AlignedRect |
Construct a rotated rect from a given aligned rect. | Layout/SlateRotatedRect.h | |
FSlateRotatedRect
(
const UE::Slate::FDeprecateVector2DParameter& InTopLeft, |
Per-element constructor. | Layout/SlateRotatedRect.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ExtentX | FVector2f | Transformed X extent (right-left). | Layout/SlateRotatedRect.h | |
| ExtentY | FVector2f | Transformed Y extent (bottom-top). | Layout/SlateRotatedRect.h | |
| TopLeft | FVector2f | Transformed Top-left corner. | Layout/SlateRotatedRect.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool IsUnderLocation
(
const UE::Slate::FDeprecateVector2DParameter Location |
Point-in-rect test. | Layout/SlateRotatedRect.h | |
FSlateRect ToBoundingRect() |
Convert to a bounding, aligned rect. | Layout/SlateRotatedRect.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FSlateRotatedRect MakeRotatedRect
(
const FSlateRect& ClipRectInLayoutWindowSpace, |
Layout/SlateRotatedRect.h | ||
static FSlateRotatedRect MakeRotatedRect
(
const FSlateRect& ClipRectInLayoutWindowSpace, |
Layout/SlateRotatedRect.h | ||
static FSlateRotatedRect MakeSnappedRotatedRect
(
const FSlateRect& ClipRectInLayoutWindowSpace, |
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. | Layout/SlateRotatedRect.h | |
static FSlateRotatedRect MakeSnappedRotatedRect
(
const FSlateRect& ClipRectInLayoutWindowSpace, |
Layout/SlateRotatedRect.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator==
(
const FSlateRotatedRect& Other |
Layout/SlateRotatedRect.h |