Stores a rectangle that has been transformed by an arbitrary render transform. 更多...
#include <SlateRotatedRect.h>
Public 成员函数 | |
| FSlateRotatedRect () | |
| Default ctor. | |
| FSlateRotatedRect (const FSlateRect &AlignedRect) | |
| Construct a rotated rect from a given aligned rect. | |
| FSlateRotatedRect (const FVector2D &InTopLeft, const FVector2D &InExtentX, const FVector2D &InExtentY) | |
| Per-element constructor. | |
| bool | IsUnderLocation (const FVector2D &Location) const |
| Point-in-rect test. | |
| FSlateRect | ToBoundingRect () const |
| Convert to a bounding, aligned rect. | |
静态 Public 成员函数 | |
| static FSlateRotatedRect | MakeSnappedRotatedRect (const FSlateRect &ClipRectInLayoutWindowSpace, const FTransform2D &LayoutToRenderTransform) |
| 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 属性 | |
| FVector2D | ExtentX |
| transformed X extent (right-left). | |
| FVector2D | ExtentY |
| transformed Y extent (bottom-top). | |
| FVector2D | TopLeft |
| transformed Top-left corner. | |
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.
|
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.