Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Layout/SlateRect.h |
Include |
#include "Layout/SlateRect.h" |
class FSlateRect
A rectangle defined by upper-left and lower-right corners.
Name | Description | ||
---|---|---|---|
|
float |
Bottom |
|
|
float |
Left |
|
|
float |
Right |
|
|
float |
Top |
Name | Description | |
---|---|---|
|
FSlateRect ( |
|
|
FSlateRect ( |
Name | Description | ||
---|---|---|---|
|
bool |
ContainsPoint ( |
Returns whether or not a point is inside the rectangle |
|
bool |
DoRectanglesIntersect ( |
Do rectangles A and B intersect? |
|
Expand ( |
Returns the rect that encompasses both rectangles |
|
|
ExtendBy ( |
Return a rectangle that is extended on each side by the amount specified in each margin. |
|
|
FromPointAndExtent ( |
Creates a rect from a top left point and extent. |
|
|
float |
GetArea() |
|
|
UE::Slate::F... |
GetBottomLeft() |
Returns the bottom-left position of the rectangle |
|
FVector2f |
GetBottomLeft2f() |
|
|
UE::Slate::F... |
GetBottomRight() |
Returns the bottom-right position of the rectangle |
|
FVector2f |
GetBottomRight2f() |
|
|
UE::Slate::F... |
GetCenter() |
Returns the center of the rectangle |
|
FVector2f |
GetCenter2f() |
|
|
UE::Slate::F... |
GetSize() |
Returns the size of the rectangle in each dimension. |
|
FVector2f |
GetSize2f() |
|
|
UE::Slate::F... |
GetTopLeft() |
Returns the top-left position of the rectangle |
|
FVector2f |
GetTopLeft2f() |
|
|
UE::Slate::F... |
GetTopRight() |
Returns the top-right position of the rectangle |
|
FVector2f |
GetTopRight2f() |
|
|
bool |
InitFromString ( |
Returns a string of containing the coordinates of the rect |
|
InsetBy ( |
Return a rectangle that is contracted on each side by the amount specified in each margin. |
|
|
IntersectionWith ( |
Returns the rectangle that is the intersection of this rectangle and Other. |
|
|
IntersectionWith ( |
Returns the rectangle that is the intersection of this rectangle and Other, as well as if they were overlapping at all. |
|
|
bool |
IsEmpty() |
|
|
bool |
IsRectangleContained ( |
Is rectangle B contained within rectangle A? |
|
bool |
IsValid() |
Determines if the rectangle has positive dimensions. |
|
OffsetBy ( |
Return a rectangle that is offset by the amount specified . |
|
|
Round() |
Rounds the Left, Top, Right and Bottom fields and returns a new FSlateRect with rounded components. |
|
|
ScaleBy ( |
Return a rectangle that is scaled by the amount specified. |
|
|
ToString() |
Returns a string of containing the coordinates of the rect |
Name | Description | ||
---|---|---|---|
|
bool |
operator!= ( |
|
|
bool |
operator== ( |