Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Layout
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
| Type | Name | Description | |
|---|---|---|---|
| FVector2f | ExtentX | Transformed X extent (right-left). | |
| FVector2f | ExtentY | Transformed Y extent (bottom-top). | |
| FVector2f | TopLeft | Transformed Top-left corner. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default ctor. | |||
FSlateRotatedRect
(
const FSlateRect& AlignedRect |
Construct a rotated rect from a given aligned rect. | ||
FSlateRotatedRect
(
const UE::Slate::FDeprecateVector2DParameter& InTopLeft, |
Per-element constructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | IsUnderLocation
(
const UE::Slate::FDeprecateVector2DParameter Location |
Point-in-rect test. | |
| FSlateRotatedRect | MakeRotatedRect
(
const FSlateRect& ClipRectInLayoutWindowSpace, |
||
| FSlateRotatedRect | MakeRotatedRect
(
const FSlateRect& ClipRectInLayoutWindowSpace, |
||
| 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. | |
| FSlateRotatedRect | MakeSnappedRotatedRect
(
const FSlateRect& ClipRectInLayoutWindowSpace, |
||
| FSlateRect | Convert to a bounding, aligned rect. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator==
(
const FSlateRotatedRect& Other |