engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | 所有成员列表
FSlateRotatedRect结构体 参考

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.

成员函数说明

◆ MakeSnappedRotatedRect()

static FSlateRotatedRect FSlateRotatedRect::MakeSnappedRotatedRect ( const FSlateRect &  ClipRectInLayoutWindowSpace,
const FTransform2D &  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.


该结构体的文档由以下文件生成: