Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Layout
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/Anchors.h |
| Include | #include "Widgets/Layout/Anchors.h" |
Syntax
USTRUCT (BlueprintType )
struct FAnchors
Remarks
Describes how a widget is anchored.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FVector2D | Maximum | Holds the maximum anchors, right + bottom. | |
| FVector2D | Minimum | Holds the minimum anchors, left + top. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FAnchors () |
Default constructor.The default margin size is zero on all four sides.. | ||
FAnchors
(
float UnifromAnchors |
Construct a Anchors with uniform space on all sides | ||
FAnchors
(
float Horizontal, |
Construct a Anchors where Horizontal describes Left and Right spacing while Vertical describes Top and Bottom spacing | ||
FAnchors
(
float MinX, |
Construct Anchors where the spacing on each side is individually specified. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Returns true if the anchors represent a stretch along the horizontal axis | ||
| bool | Returns true if the anchors represent a stretch along the vertical axis |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FAnchors& Other |
Compares this set of FAnchors with another for inequality. | |
| bool | operator==
(
const FAnchors& Other |
Compares this set of FAnchors with another for equality. |